You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But ideally we would want to configure this behavior to be automatic - so things like balance would be maintained automatically between calls. If users want to disable the automatic maintenance of c7, we can add a flag to SmartContractConfig.
I propose to add the exported contents of the c7 register to the result of every successful execution in TVMExecutionResultOk. This would require exporting the c7 contents as JSON from the c code at the end of vm_exec (and rebuilding the wasm). After doing that, we will have easy control of what to do with it from TypeScript.
We'll be happy to help!
We love this project. We're a team of several TON developers working on an AMM (DEX). Your project is the only decent way to test contracts in the TON ecosystem. We understand that you're probably busy, but we'll be happy to help you maintain it. We have a good understanding of your code and if you want the help, we can add features like c7 export by ourselves as a PR.
Contract balance between calls
Users would expect the following new test in
SmartContract.spec.ts
to pass:Yes it fails:
Exporting the value of c7 register
Thank you for allowing to configure c7 register! This indeed allows setting the contract balance easily with a command like:
But ideally we would want to configure this behavior to be automatic - so things like balance would be maintained automatically between calls. If users want to disable the automatic maintenance of c7, we can add a flag to
SmartContractConfig
.I propose to add the exported contents of the c7 register to the result of every successful execution in
TVMExecutionResultOk
. This would require exporting the c7 contents as JSON from the c code at the end ofvm_exec
(and rebuilding the wasm). After doing that, we will have easy control of what to do with it from TypeScript.We'll be happy to help!
We love this project. We're a team of several TON developers working on an AMM (DEX). Your project is the only decent way to test contracts in the TON ecosystem. We understand that you're probably busy, but we'll be happy to help you maintain it. We have a good understanding of your code and if you want the help, we can add features like c7 export by ourselves as a PR.
@talkol @doronaviguy
The text was updated successfully, but these errors were encountered: