429
https://smartpy.io/ https://twitter.com/smartpy_io
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
Читать полностью…
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
Читать полностью…
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
Читать полностью…
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
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.
Would it be possible to have some problems reviewed for an upcoming project ?
Читать полностью…
I have multiple entry points which are calling transfer function, so I had put the external contract call into a private function.
Читать полностью…
Hey,anything is appreciated! I'm away from home now and will check later
Читать полностью…
Actually it's possible outside of the modules, in the tests.
Читать полностью…
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?
actually it worked in a new virtual env. Will report back if I run into the same issue again
Читать полностью…
Not that we are aware of. The same code works on x64? Would you mind sharing the code?
Читать полностью…
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.
I was facing some issues while testing timestamp evalution on the ide.
Читать полностью…
This should work. Notice that private must be called with records for now. We're working on it to simplify.
Читать полностью…
Fine, so then you need to set the effect with_operation.
Do you have a code to share?
Thaddeusl Varrighacaneyd has been banned! Reason: CAS ban.
Читать полностью…
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 🙂
The local dev page contains ai instructions so you can help the ai give you not outdated code.
Читать полностью…