https://smartpy.io/ https://twitter.com/smartpy_io
Hi,
can I check your module import deps are B <- A <- test code
?
Will a storage var be enough to just store the params in the beginning and then access it in the last call? Hopefully this storage var cannot be updated by another contract call before this tx ends?
Читать полностью…User(params)->A->B->A
<--- (how do I get the users context/params in this last call accurately)
I didn't understand the 2nd question, could you elaborate?
Читать полностью…And how do we map the context between calls like do I store it in the storage?
Читать полностью…The callback from (B -> A) will already execute on the new storage of A after (A -> B).
Читать полностью…I see so the contract call is not a blocking call and basically it always happens at the end of the execution of the current entrypoint?
Читать полностью…The documentation is here: https://smartpy.io/reference.html
Читать полностью…Hello all, I code in python and have been using import hashlip . Is there an outline for Tezos ? Thanks
Читать полностью…We have used compile only FFF , Looking forward for the upgrade in interface, I'll update the Bundle accordingly 😄
Читать полностью…Dear all, is anyone using SmartPy.sh run
? We are thinking of getting rid of it and only keep compile
and test
. Also, we'll possibly change the compile
interface but it's still being discussed.
Like no mapping but a simple dump into a var self.data.storageVar=params
You can have a big map (requestId => requestBody) in A, then you call B with the requestId and then B calls you with the same requestId. That way, you can get the requested parameters without much cost.
Читать полностью…The second question is mostly about maintaining the context between the initial and last call to A. Like if a user calls A with some set of params how do I maintain that context when B calls back to A at the end/
Читать полностью…About the first question. Yes, B would call A and then A would do some action depending on the value provided from B.
Читать полностью…I meant like if contract A wants to access contract B's storage and do some operation depending on it how is it achieved in this model? Is it like the new entrypoint of A will have to handle the actual execution after B calls back to that entrypoint?
Читать полностью…There was some use case I wanted to test. But if this is not possible how do we generally handle callbacks or view function calls from a contract?
Читать полностью…Once B calls A, A can do anything you want. Anyway, the first call from A is fully evaluated before calling any other contract.
Читать полностью…I have 2 contracts A and B. A calls B and B calls another entrypoint of A and modifies the storage in that last call. Is it possible to access that modified storage in the initial call from A? My initial entrypoint in A looks something like this :
def entrypointA(self):Читать полностью…
# some operation
sp.transfer(......) #call to B
# access modified storage
we aren't dependent on SmartPy.sh run script for the cryptocodeschool so it shouldn't be a problem.
Читать полностью…What I expect: whenever you use run
, you can replace it by compile
.
Yes we are using SmartPy.sh FFF , Let us know the updates coming forward so that we can improvise on our products
Читать полностью…I think the issue is here:
# send ticketsЧитать полностью…
# finds the ticket from the sender
PAIR ;
DUP ;
UNPAIR ;