-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EthTransaction: impl TopDecode/TopEncode #163
Conversation
TopEncode/TopDecode is needed to have optional args for EthTransaction
Contract comparison - from 2942f10 to 806a769
|
common/transaction/src/lib.rs
Outdated
@@ -4,6 +4,8 @@ multiversx_sc::imports!(); | |||
multiversx_sc::derive_imports!(); | |||
|
|||
use eth_address::EthAddress; | |||
use multiversx_sc::codec::{EncodeErrorHandler, NestedDecodeInput, TopEncodeOutput}; | |||
// use multiversx_sc::codec::{DecodeErrorHandler, EncodeErrorHandler, NestedDecodeInput, TopDecodeInput, TopEncodeOutput}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
delete commented code ?
common/transaction/src/lib.rs
Outdated
// result.try_push(T::dep_decode_or_handle_err(&mut nested_arg, h)?) | ||
// { | ||
// return Err(h.handle_error(DecodeError::from(capacity_error))); | ||
// } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
commented code
TopEncode/TopDecode is needed to have optional args for EthTransaction