-
Notifications
You must be signed in to change notification settings - Fork 992
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
Ensure wrapped ERC20 transfers are correctly authorized and add end-to-end tests for them #1112
Ensure wrapped ERC20 transfers are correctly authorized and add end-to-end tests for them #1112
Conversation
9c20e94
to
949421c
Compare
949421c
to
4751573
Compare
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.
maybe I'd change some of the INFO
to DEBUG
logs, but otherwise lgtm
verifiers: &BTreeSet<Address>, | ||
sender: &Address, | ||
) -> bool { | ||
verifiers.contains(sender) |
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.
honest question, I've always wondered if we trigger the receiver vp as well. Or can people not refuse money from certain accounts?
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.
It seems we should trigger the receiver account as well.
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.
Will add this, will require some small refactoring.
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.
Generally looks good, I'm just waiting on an answer as to whether we trigger receiver vps for token transfers.
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.
Make sure the receiver vp also gets triggered.
…d-erc20-transfers * eth-bridge-integration: Fix the validator set hashes signed over by secp keys
…d-erc20-transfers * eth-bridge-integration: In tests crate, use eth bridge types via shared crate Use namada_ethereum_bridge via shared crate Use (not(feature = "abcipp")) Revert genesis.rs changes Fix up the e2e test Move oracle Config struct to ethereum_bridge crate Rename test Simplify setup::network call slightly Don't set any Ethereum bridge params in dev mode Revert "Remove e2e test until expectrl issue solved" # Conflicts: # tests/src/e2e/eth_bridge_tests.rs
Closes #432 and relates to #508
This PR
NB: some helper fns added/used in this PR are also in https://github.com/anoma/namada/pull/886/files#diff-b26bbd416d9d500f8f12aee8f7b3182f35b5cacb748898d9c07fe2cdd41e69b8