200区块之后时间未到
#374
Replies: 1 comment 1 reply
-
第一次调用时用payout(),后面不能再重复调用。因为已经转给用户,token的锁定时间不在合约里面计算,是单独计算。 另外,用local.incrementGlobalSlot(200);表示通过的时间,如下参考。 代码参考来自“https://github.com/coldstar1993/mina-sz/blob/main/contracts/src/others/simple-zkapp-vesting.ts”
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
源文件:https://github.com/missop/mina-zkapp-bootcamp/blob/task4/learn/missop/task4/FundMe.ts
现象:执行unit/FundMe.test.ts时第二次执行 payout 方法报错,报错如下:
● FundMe › should payout successfully with right preimage after deadline 200 blocks
Beta Was this translation helpful? Give feedback.
All reactions