尽管批准了,但仍无法将其归属于农场合同?

发布于 2025-02-09 10:23:34 字数 187 浏览 1 评论 0 原文

我已经部署了一份农场合同(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]

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

尐籹人 2025-02-16 10:23:34

嘿,我讨论了您失败的交易 https://ropsten.etherscan.io /TX/0X9561B25C1D95D436839D3246D3BBBBBB590D2974BB4BB4FA41A4117A51A75E28553416E

上述表明应该是允许的问题(自有:

enter image description here

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)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文