-
Notifications
You must be signed in to change notification settings - Fork 275
feat: convert tx reward manager npm test to go test #1900
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
base: JonathanOppenheimer/convert-tx-allow-list-test
Are you sure you want to change the base?
feat: convert tx reward manager npm test to go test #1900
Conversation
| return addr, contract | ||
| } | ||
|
|
||
| func TestRewardManager(t *testing.T) { |
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.
tests look good? got the blackhole stuff in here
| // SendSimpleTx sends a simple ETH transfer transaction | ||
| // See ethclient/simulated/backend_test.go newTx() for the source of this code | ||
| // TODO(jonathanoppenheimer): after libevmifiying the geth code, investigate whether we can use the same code for both | ||
| func SendSimpleTx(t *testing.T, b *sim.Backend, key *ecdsa.PrivateKey) *types.Transaction { |
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.
not happy with adding this, would prefer to use an existing function...
…nathanOppenheimer/convert-reward-manager-test Signed-off-by: Jonathan Oppenheimer <[email protected]>
|
This should automatically rebase to target |
Why this should be merged
Replaces reward manager allowlist e2e hardhat tests with golang bindings and a simulated backend test.
Part of #1228
How this works
Generates relevant golang bindings from sol files for the testing. Mirrors the hardhat test to a golang test using simulated backend.
How this was tested
CI
Need to be documented?
No
Need to update RELEASES.md?
No