Posted on c/ElrondDevelopers 3 rar493349386c/ElrondDevelopers 2 years ago How can I return a message/status code from a SC call without using require!? Comment 3 Comments ian8639380436 2years ago If it's an error, just use require. Don't try to cheap out on gas. Otherwise, just return a ManagedBuffer with the message or use events. And167100369 2years ago sc_panic!("your message") is the way. sc_error! has been removed. vwd858791848 2years ago return sc_error!(error_msg) probably
If it's an error, just use require. Don't try to cheap out on gas. Otherwise, just return a ManagedBuffer with the message or use events.
sc_panic!("your message") is the way. sc_error! has been removed.
return sc_error!(error_msg) probably