我已经部署了一份农场合同(Bobafarm),并试图使用Staking功能(Staketokens)将其储备到农场。我了解,为了将令牌存放到农场,它需要批准活动,以便农场合同可以代表我转移我的令牌。但是,我不确定为什么每当我试图掌握令牌时,交易面对“执行恢复”。
感谢任何帮助,谢谢!
[删除代码并链接到合同作为问题AHS的链接]
I have deployed a farm contract (BobaFarm) and I'm trying to stake tokens to the farm using a staking function (stakeTokens). I understand that in order to stake tokens to the farm, it requires an approval event so that the farm contract can transfer my tokens on my behalf. However, I'm not sure why whenever I try to stake tokens, the transaction faces "execution reverted".
Any help is appreciated, thanks!
[Removed code and link to contract as problem ahs been solved]
发布评论
评论(1)
嘿,我讨论了您失败的交易 https://ropsten.etherscan.io /TX/0X9561B25C1D95D436839D3246D3BBBBBB590D2974BB4BB4FA41A4117A51A75E28553416E
上述表明应该是允许的问题(自有:
Hey, I debuged your failed transaction https://ropsten.etherscan.io/tx/0x9561b25c1d95d436839d3246d3bbb590d2974bb4fa4a4117a51a75e28553416e
The above shows that it should be a permission problem (Ownable: caller is not the owner)