我对自定义状态同步机制有问题,如多边形文档所述: 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/0xbf54174d00ab939ac639ac639ac639ac639ac639ac639ac639ac639ac639ac639ac639ac639ac639ac639ac639ac639ac639ac639ac639ac639ac639ac6391919ac69ac6919c.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
发布评论