-
Notifications
You must be signed in to change notification settings - Fork 2
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
feat: Add Support for Zero Fee Addresses #53
Conversation
st.state.AddBalance(treasuryAccount, bothFees) | ||
|
||
// @shaspitz do we note want to also remove the fee from the sender account, even when we increment the treasury account? | ||
if slices.Contains(st.evm.Config.ZeroFeeAddresses, sender.Address()) { |
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.
don't we use vm.config now from the cli flag above?
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.
That is vm.config. it's just called st.evm.Config
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.
Thanks! It's worth one of us testing this before merging, we'll also need to integrate with nomad keystore setup
This PR introduces support for zero fee addresses in the Ethereum state transition logic and configuration. This will ensure accounts like the Oracle and Relayer for the bridge never run out of funds.
Note: to set the whitelisted accounts, you must configure them in the genesis file.