anoma / namada

Rust implementation of Namada, a Proof-of-Stake L1 for interchain asset-agnostic privacy
https://namada.net
GNU General Public License v3.0
2.39k stars 948 forks source link

re-use tx error type between VM and WASM tx_prelude #2980

Open tzemanovic opened 6 months ago

tzemanovic commented 6 months ago

follow-up to #2958

Replace the type TxError = String; in namada/src/vm/wasm/run.rs with an error type to be introduced in the core crate and re-used for the error type that's turned to string in macros/src/lib.rs:

                    // TODO: pass some proper error from txs, instead of a string
                    let err = err.to_string().serialize_to_vec();
sug0 commented 6 months ago

Also related to #2962