429
https://smartpy.io/ https://twitter.com/smartpy_io
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?
📣 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. 🚀
can a private function call another private function?
Читать полностью…
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.
Читать полностью…
as it is just a very small change i need to make it would be more convenient to compile with the exact version :)
Читать полностью…
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 😁
Читать полностью…
If it's given as an argument yes.
def f(...):Читать полностью…
pass
def g(self, param):
param.f(...)
g(sp.record(f=f, ...))
This is about to change. For now, you can provide a record with fields being the arguments.
Читать полностью…
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?