多边形同步的以太坊主网未能在儿童(Polygon)侧回回来

发布于 2025-01-31 02:24:21 字数 1144 浏览 1 评论 0 原文

我对自定义状态同步机制有问题,如多边形文档所述: https://docs.polygon.technology/docs/develop/l1-l2-communication/state-transfer

我只是试图将消息从Mainnet发送到Polygon。

我已经在根和儿童方面部署了这两个合同。我能够用:

_sendMessageToChild(message)

但是什么都没有把它带到孩子方面:

function _processMessageFromRoot(
    uint256 stateId,
    address sender,
    bytes memory data
) internal override validateSender(sender) {

我缺少什么东西吗?我需要在某个地方注册这些合同吗?我需要为其支付汽油才能降落在多边形方面吗?

https://etherscan.io/address/0xbf54174d00ab939ac639ac639ac639ac639ac639ac639ac639ac639ac639ac639ac639ac639ac639ac639ac639ac639ac639ac639ac639ac639ac639ac6391919a​​c69ac6919c.anc9ac9cn.and.an.acta

I'm having an issue with the custom State Sync mechanism, as described in Polygon docs here: https://docs.polygon.technology/docs/develop/l1-l2-communication/state-transfer.

I'm just trying to send a message from mainnet to polygon.

I've deployed these two contracts on the root and child side. I am able to call the root side with:

_sendMessageToChild(message)

but nothing makes it to the child side in:

function _processMessageFromRoot(
    uint256 stateId,
    address sender,
    bytes memory data
) internal override validateSender(sender) {

Is there something I'm missing? Do I need to register these contracts somewhere? Do I need to pay gas for it to land on the Polygon side?

https://polygonscan.com/address/0xbF54174d00Ab9aC639091dCeE58D814302a866e0#readContract

https://etherscan.io/address/0xbF54174d00Ab9aC639091dCeE58D814302a866e0

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文