smartpy_io | Unsorted

Telegram-канал smartpy_io - SmartPy

429

https://smartpy.io/ https://twitter.com/smartpy_io

Subscribe to a channel

SmartPy

I was facing some issues while testing timestamp evalution on the ide.

Читать полностью…

SmartPy

This should work. Notice that private must be called with records for now. We're working on it to simplify.

Читать полностью…

SmartPy

Fine, so then you need to set the effect with_operation.
Do you have a code to share?

Читать полностью…

SmartPy

Sure, can you precise what you'd like to do?

Читать полностью…

SmartPy

Thaddeusl Varrighacaneyd has been banned! Reason: CAS ban.

Читать полностью…

SmartPy

https://smartpy.io/ide?cid=QmfF5o2dTUSMrDzp6hVaxuFTjHhP8SpZL9xnQxAaQr55hY&k=8740efd2f058852565bf

It should be something like this. I'm coding with my phone so I can't do much more 🙂

Читать полностью…

SmartPy

Please do this @teznebraska I'll help you

Читать полностью…

SmartPy

The local dev page contains ai instructions so you can help the ai give you not outdated code.

Читать полностью…

SmartPy

Google returns a detailed example, but my experience has been the syntax is usually wrong. Obviously the free Google AI is not to be trusted

Читать полностью…

SmartPy

Can you use the share button of the ide and select ipfs and paste the link here or in private if you prefer?

Читать полностью…

SmartPy

Google seems to return information on deprecated versions of smartpy

Читать полностью…

SmartPy

You should put addresses in the map, not string. You should not need any slice.

Читать полностью…

SmartPy

self.data.approved_delegators = {}
for item in delegator_list:
address_str = sp.slice(0, 36, item)
this_address = sp.cast(address_str,sp.address)
this_balance = sp.slice(37,16,item)
self.data.approved_delegators[this_address] = sp.record(yay=False,nay=False,_pass=False,level=0,balance=this_balance)

Читать полностью…

SmartPy

Hello, you can't do that without a strange hack. You should not be needed this.
Why is delegator_list not a sp.list[sp.address]?

Читать полностью…

SmartPy

Tried a cast as an alternative, but get another error

Читать полностью…

SmartPy

Would it be possible to have some problems reviewed for an upcoming project ?

Читать полностью…

SmartPy

https://smartpy.io/ide?code=eJx9VcFu2zAMvecrBPfiYI7XDthhAQw0bVo0QDcUXbYeDdVmWqGyZEhKCu_rR1l2bEVufbLIJ_KRFMkzsgZtmKCGSUFudKHkezpjVS2VIbqiytQNoZroeja71HVayXLPYVbCjlSUiXi@nBH8Ck617q6vtYkReS2FUbQwiGgh9rPX8pwJZvI81sB3CVp5A7VE@yktSwVaJ8TINxArdyLLQLMpSYtHzp1k29TgZM9S8oTQSu6F6UFjAvazftOSGpq2vknmOHyA8chkHrfPbiDJrKf7Ga6lng1hfIB1ESHQ_QwB2ZrUih2oAS_LW0WF3oHaWsPa5VpBAewAqk@Qn@mElQnZ0e27vOX05TRpvb0HqmiFPNAtmpOqjD2Y_XZKVrmDWLd5X70AaKSFHVkF@gPlexhiHqvm3sl05O6oKDk410X3_EJ@A_WWaeY_MP_cUsi6d5Ry2sj9hMU4cjFjn9ifKEGJDQ7PRuIpas1E83lwcz6VlVFNAm3UxxqFtvyKVdQUryepWQaXCqqB_JYVxMXQr6egLmu9rdh7DIlVVXsD_@LzeUKOZqZd_ZJigsXgoIA4uqWMQ4mJIDsmyqPFaBTgGVngd1Thk6@5bPDSYvEV5XiPcmaa7vjwuPm72t6Qp832bv24elrd94o_V_eb61DedRRSFgVw7oaj9ej1HaDzJq8lGz1O23vvzLyWir63XXfaSDgnwY5W2xyitOMnO51IHv7MaSf6eXQjCUZFMj3BknBOBSI7hjDVM7YjkZ3xEWECp7agFeR5F82la5Lc4PKIXalt5O441FcXIKhi0rWk1ea9KI7cthhX1QbbwWhRtBPvBQQoLAUul_W3798vfpA3aBY1ZUqjRwOqwm2CC6ygnDeD45_dZD8xF0etIhoe5yNoyQ_T2F43gl_J5ykkikegtkZTsFYxDrgcdq_LRruMmEiHTeo9hpZ9OjlQW9vTqnP_eEu5Bl90cT7CzIPypa8Xo3IFxf2ShYHM_gNRn2Et

Читать полностью…

SmartPy

I have multiple entry points which are calling transfer function, so I had put the external contract call into a private function.

Читать полностью…

SmartPy

Can private functions make external contract calls ?

Читать полностью…

SmartPy

Hey,anything is appreciated! I'm away from home now and will check later

Читать полностью…

SmartPy

https://smartpy.io/ide?cid=QmYakmk7robvuzcNvZT5ATjREGC9SfgDX3xUMQnhsSpVGJ&k=06593de610f2d92bf494

Читать полностью…

SmartPy

I'll give that a try

Читать полностью…

SmartPy

So, basically, my goal is to have delegators use a dApp, connect with their wallet, so that that sender value from the wallet transaction can be validated against a map or list of delegators in storage

Читать полностью…

SmartPy

It's mainly the Google AI responses that appear to be outdated. The actual websites returned don't answer my specific questions, and I have been unable to find examples that come close enough to my use case in the smartpy.io manual. For example search Google for 'smartpy how to deploy a contract with a map"

Читать полностью…

SmartPy

Can you indicate me the deprecated info links?
You may want to look at https://smartpy.tezos.com/manual/introduction/local_development.html#local-development

Читать полностью…

SmartPy

I wasn't sure how to pass a map to init when deploying the contract. Does the map have to be in Michelson format?

Читать полностью…

SmartPy

...trying to initialize the contract with a list of strings to feed the map

Читать полностью…

SmartPy

and that might be part of the problem. I'm trying to build a map

Читать полностью…

SmartPy

this_address = sp.cast(address_str,sp.address)
sp.cast: Expected type sp.address, but got sp.option(sp.string).

Читать полностью…

SmartPy

smartpy.services.ParseError: :10: SyntaxError: sp.address: wrong number of arguments: : (10,32)-(10,54)

Читать полностью…
Subscribe to a channel