Skip to content
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

Merged
merged 2 commits into from
Feb 2, 2024

Conversation

CostinCarabas
Copy link
Contributor

TopEncode/TopDecode is needed to have optional args for EthTransaction

TopEncode/TopDecode is needed to have optional args for EthTransaction
Copy link

github-actions bot commented Feb 1, 2024

Contract comparison - from 2942f10 to 806a769
⚠️ Warning: Could not download the report for the base branch. Displaying only the report for the current branch. ⚠️

Path                                                                                             size                  has-allocator                     has-format
mx-bridge-eth-sc-rs
- bridge-proxy/bridge-proxy.wasm 12841 No No
- bridged-tokens-wrapper/bridged-tokens-wrapper.wasm 8777 No No
- esdt-safe/esdt-safe.wasm 21412 No No
- multi-transfer-esdt/multi-transfer-esdt.wasm 18725 No No
- multisig/multisig.wasm 30537 No No

mihaicalinluca
mihaicalinluca previously approved these changes Feb 1, 2024
@@ -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};
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

delete commented code ?

// result.try_push(T::dep_decode_or_handle_err(&mut nested_arg, h)?)
// {
// return Err(h.handle_error(DecodeError::from(capacity_error)));
// }
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

commented code

@dragos-rebegea dragos-rebegea merged commit 7a38dec into feat/v3 Feb 2, 2024
5 checks passed
@dragos-rebegea dragos-rebegea deleted the fix/eth-transaction-args-optional branch February 2, 2024 09:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants