smartpy_io | Unsorted

Telegram-канал smartpy_io - SmartPy

429

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

Subscribe to a channel

SmartPy

Would you mind sending me the code?

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

SmartPy

Hello, what a question!
Would it be ok to adapt it to the new cli and compile or you want the exact same version with the exact same michelson?

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

SmartPy

📣 We have released a new SmartPy alpha v0.23.0a2! 🎉

https://releases.smartpy.io/0.23.0a2

This alpha release includes
* The proposed Seoul protocol as the default choice for protocols, Paris protocol is removed & we've updated to octez-client 23.0,
* We are now on PyPi (https://pypi.org/project/smartpy-tezos) and have renamed the main installable to smartpy-tezos - just do pip install smartpy-tezos,
* More syntax additions (pattern matching the head/tail of a list), thirdparty library updates and documentation improvements.

Please see the release notes (https://releases.smartpy.io/0.23.0a2/releases) for more details. 🚀

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

SmartPy

can a private function call another private function?

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

SmartPy

private functions can only take one parameter?

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

SmartPy

OK, I see! Actually I know I can work past this issue. I only need it during prototyping actually, was just wondering if I'm missing something since I remember this was possible in older versions of smartpy

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

SmartPy

ok i got it to work... question about byte literals: can I dynamically create a byte literal in contract code? For example: sp.bytes("0x" + my_string.encode().hex()) -> I get SyntaxError: sp.bytes: wrong number of arguments

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

SmartPy

actually I was starting to develop something on linux and had some other issues as well so wanted to continue developing on macos but then I couldn't even get it to run. Let me check with the welcome template

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

SmartPy

hi guys! are there any known issues with the newer smartpy versions and apple silicon? I've been looking into it to see if I want to swtich but having troubles getting it to run on macos (M1)

raise Exception(f"parser interaction error: exit status {proc.returncode}")
Exception: parser interaction error: exit status

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

SmartPy

Daniella has been banned! Reason: CAS ban.

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

SmartPy

Before answering your question, I suggest you to override the all_tokens off-chain view if that's not already done.

Now, I think we don't have any system to remove storage attribute after having defined it because it would allow to many hacks that may lead to inconsistent behavior.

In your case, that would be perfectly legit to remove this attribute so the simplest thing I can think of is to copy-paste the whole library and remove it there. You can replace the mint entrypoint by pass and keep your code.

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

SmartPy

What are the problems?

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

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

as it is just a very small change i need to make it would be more convenient to compile with the exact version :)

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

SmartPy

hey everybody :) i need to recompile an old contract that used v0.10.1 cli. could you help me get that specific cli-version? thanks a lot 😁

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

SmartPy

If it's given as an argument yes.


def f(...):
pass

def g(self, param):
param.f(...)


g(sp.record(f=f, ...))

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

SmartPy

This is about to change. For now, you can provide a record with fields being the arguments.

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

SmartPy

Actually it's possible outside of the modules, in the tests.

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

SmartPy

Great!
sp.bytes(...) cannot work dynamically but there may be solutions depending on your use case. What do you want to do excatly? Why do you want to do that?

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

SmartPy

actually it worked in a new virtual env. Will report back if I run into the same issue again

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

SmartPy

Not that we are aware of. The same code works on x64? Would you mind sharing the code?

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

SmartPy

Вероника has been banned! Reason: CAS ban.

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

SmartPy

Florin Bourgeois has been banned! Reason: CAS ban.

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

SmartPy

Hey there. I have a question about using the FA2 library to define my own token contract.
Is there a way to remove the next_token_id from the original storage? I've already included the token_id in the parameters when I override the mint entrypoint.

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

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?

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