clef-ui
clef-ui copied to clipboard
Add warning message for sendTx Data view
Data come from call_info:message
There is CRITICAL, WARNING and INFO.
CRITICAL: show warning and don't allow user to advance. An example message is "message":"Tx destination is the zero address!","type":"CRITICAL" when to address is all zeros
INFO give you a human-readable string of the ABI call.
WARNING give you an error message, that we should surface to the user. The longest error message will likely be "Tx contains data, but provided ABI signature could not be matched: WARNING: Supplied data is stuffed with extra data. \nWant 0100000000000000000000000000000000000000000000000000000000000012\nHave 0000000000000000000000000000000000000000000000000000000000000012\nfor method safeSend(address)"