darwinia-network / darwinia-messages-sol

Darwinia cross-chain messages gateway and protocol for EVM developers 💌
MIT License
29 stars 8 forks source link

evm -> xcm dispatch revert confirm #320

Closed hujw77 closed 1 year ago

hujw77 commented 1 year ago
function send_xcm() {
    xcm_call();
    revert();
}

After inbound.send_xcm(). Does xcm_call revert?

wuminzhe commented 1 year ago

The revert() you added here will revert the xcm_call. The xcm will not be sent out. That's what we expect.

If the send_xcm is the target function called by messaging layer. That is, any revert happened in send_xcm() will propagate to messaging layer. The messaging layer will emit an MessageDelivered with a success or failure result of send_xcm.