从多边形传递消息到Bnb与Axelar

huangapple go评论67阅读模式
英文:

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}

从多边形传递消息到Bnb与Axelar

从多边形传递消息到Bnb与Axelar

英文:

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.

从多边形传递消息到Bnb与Axelar

从多边形传递消息到Bnb与Axelar

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.

huangapple
  • 本文由 发表于 2023年8月4日 05:32:48
  • 转载请务必保留本文链接:https://go.coder-hub.com/76831723.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定