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

bridge-proxy:Only failed transactions are returned #164

Merged
merged 12 commits into from
Feb 13, 2024

Conversation

CostinCarabas
Copy link
Contributor

On the callback only in case of error should the transaction be added to eth_failed_transaction_list.

On the callback only in case of error should the transaction be
added to eth_failed_transaction_list.
Copy link

github-actions bot commented Feb 6, 2024

Contract comparison - from 7a38dec to f2b0c43

Path                                                                                             size                  has-allocator                     has-format
mx-bridge-eth-sc-rs
- bridge-proxy/bridge-proxy.wasm 12841 ➡️ 13638 🔴 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

dragos-rebegea
dragos-rebegea previously approved these changes Feb 12, 2024
Comment on lines 54 to 59
match result {
ManagedAsyncCallResult::Ok(_) => {}
ManagedAsyncCallResult::Err(_) => {
self.eth_failed_transaction_list().push_back(tx.clone());
}
}
Copy link
Contributor

Choose a reason for hiding this comment

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

if ManagedAsyncCallResult::Err(_) = result {
self.eth_failed_transaction_list().push_back(tx.clone());
}

dragos-rebegea
dragos-rebegea previously approved these changes Feb 12, 2024
dorin-iancu
dorin-iancu previously approved these changes Feb 12, 2024
@dragos-rebegea dragos-rebegea merged commit 254633d into feat/v3 Feb 13, 2024
5 checks passed
@dragos-rebegea dragos-rebegea deleted the fix/bridge-proxy-failed-tx branch February 13, 2024 07:25
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