You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
See the screenshot below, otherwise use the RPC pre-call before sending the transaction to the chain. This event is very useful to check the result of the transaction execution after sending, but it's hard to see the concrete revert info from this event. As more and more chains integrate with XCM, the evm transaction may come from this way instead of the RPC node. I
Suggested Solution
I think we can refine the current Executed event by adding another field extra_info: Vec<u8> or extra_info: [u8; max_len] to provide more execution information to the contract users. We can reuse the second param returned by the execute(...) to retrieve the revert detail data, and pass it to the extro_info field in the event.
While I see some benefits to it, I also think that most of the Ethereum developers are used to have their tools (or simply to query) for the transaction error details. The ones we are familiar with are not using polkadotJs (or the substrate API) at all
Motivation
See the screenshot below, otherwise use the RPC pre-call before sending the transaction to the chain. This event is very useful to check the result of the transaction execution after sending, but it's hard to see the concrete revert info from this event. As more and more chains integrate with XCM, the evm transaction may come from this way instead of the RPC node. I
Suggested Solution
I think we can refine the current
Executed
event by adding another fieldextra_info: Vec<u8>
orextra_info: [u8; max_len]
to provide more execution information to the contract users. We can reuse the second param returned by theexecute(...)
to retrieve the revert detail data, and pass it to theextro_info
field in the event.@sorpaas @nanocryk @tgmichel @koushiro What do you think?
The text was updated successfully, but these errors were encountered: