-
Notifications
You must be signed in to change notification settings - Fork 1k
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
thegraph-ethereum: Mock transport for testing, test contract_call #127
Conversation
thegraph-ethereum/src/lib.rs
Outdated
}], | ||
constant: true, | ||
}; | ||
let function = Function::from(balance_of_function); |
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.
Unnecessary. balance_of_function
is already a Function
.
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.
Fixed in latest commit
Let's move 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.
This is a good start! We can assert on more interesting behavior over time, but I think this is good coverage for now, while we're moving fast. After the TestTransport
implementation is moved, this will have a thumbs up from me.
Having all mocks in If we move the mock to |
I opened an issue in |
a Please enter the commit message for your changes. Lines starting
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.
LGTM 👍
No description provided.