-
Notifications
You must be signed in to change notification settings - Fork 0
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
Fee currency state transition test #30
Conversation
5c2c64a
to
9469fa9
Compare
d31cd0f
to
16fe6b3
Compare
@@ -641,7 +641,7 @@ func DeveloperGenesisBlock(gasLimit uint64, faucet common.Address) *Genesis { | |||
} | |||
|
|||
// Add state from celoGenesisAccounts | |||
for addr, data := range celoGenesisAccounts() { | |||
for addr, data := range celoGenesisAccounts(common.HexToAddress("0x2")) { |
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.
We could make this nicer with variadic args, but it felt like over-optimisation. Let me know if you disagree.
05653ac
to
2066e27
Compare
2066e27
to
38782aa
Compare
So the test actually found a bug: The |
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.
Looks good to me.
Adds a simple fee currency transfer test.
The genesis initialisation of the
SortedOracles
contract is complicated, so instead I created a simpleMockSortedOracle
contract and use that instead. This is added to the optimism repo in celo-org/optimism#90.Resolves celo-org/optimism#86