英文:
Message Passing from Polygon To Bnb With Axelar
问题
我在从Polygon到Remix上的调用执行过程中遇到了问题。我按照Hello World消息传递文档中的示例操作,但每次都会回滚。
这是我收到的错误信息:
Gas estimation errored with the following message (see below). The transaction execution will likely fail. Do you want to force sending?
Returned error: {"jsonrpc":"2.0","error":"execution reverted","id":7635389025522819}
英文:
I am facing an issue while executing a call from polygon to bnb on remix. Followed the example from documentation of Hello World message passing but it reverts every time.
This is the error I am receiving
Gas estimation errored with the following message (see below). The transaction execution will likely fail. Do you want to force sending?
Returned error: {"jsonrpc":"2.0","error":"execution reverted","id":7635389025522819}
答案1
得分: 1
原来我在尝试执行sendMessage
函数时忘记传递气体值。传入1e18 wei并确保Metamask连接到正确的网络解决了问题。
英文:
Turns out I was forgetting to pass a gas value when I was trying to execute the sendMessage
function. Passing in 1e18 wei and making sure metamask was on correct network fixed the problem.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论