Psychedelic / DIP20

DIP20: A fungible token standard for the DFINITY Internet Computer.
GNU General Public License v3.0
65 stars 38 forks source link

Support for passing in a custom string in `Other` TxError #19

Closed b0xtch closed 2 years ago

b0xtch commented 2 years ago

This will extend the usage of the enum type TxError::Other to support arbitrary strings. This will help in surfacing errors coming from cap or anything else.

Ex:

TxError::Other(format!(
            "Inserting into cap failed with error: {:?}",
            error
        ))
ccyanxyz commented 2 years ago

Updated spec and motoko implementation