-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Support 'from' in 'eth_call' #375
Conversation
When a from value is in the eth_call params, set it to the senderId. Signed-off-by: Danno Ferrin <danno.ferrin@hedera.com>
Codecov Report
@@ Coverage Diff @@
## main #375 +/- ##
==========================================
+ Coverage 62.21% 62.98% +0.77%
==========================================
Files 9 9
Lines 868 870 +2
Branches 142 143 +1
==========================================
+ Hits 540 548 +8
+ Misses 290 282 -8
- Partials 38 40 +2
Continue to review full report at Codecov.
|
Signed-off-by: Danno Ferrin <danno.ferrin@hedera.com>
Signed-off-by: Danno Ferrin <danno.ferrin@hedera.com>
Signed-off-by: Danno Ferrin <danno.ferrin@hedera.com>
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.
LG.
Just expand the coverage on the added eth.spec.ts
} | ||
); | ||
|
||
const result = await ethImpl.call({ |
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.
For completeness of coverage this methods should be checking that the result is expected.
Given the return above i think the expected result would be 0x0
or 0x
.
Should make this change for the 4 tests added.
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.
Done
const contract = new ethers.Contract(evmAddress, abi, accounts[0].wallet); | ||
|
||
return contract; | ||
return new ethers.Contract(evmAddress, abi, accounts[0].wallet); | ||
}; | ||
}); |
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.
nit: new line since you're here.
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.
Done
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! We might want to resolve @Nana-EC 's comments and then merge :)
Signed-off-by: Danno Ferrin <danno.ferrin@hedera.com>
Signed-off-by: Danno Ferrin <danno.ferrin@hedera.com>
Kudos, SonarCloud Quality Gate passed!
|
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
* Support from in eth_call When a from value is in the eth_call params, set it to the senderId. Signed-off-by: Danno Ferrin <danno.ferrin@hedera.com>
Cherry pick #375 When a from value is in the eth_call params, set it to the senderId. Signed-off-by: Danno Ferrin <danno.ferrin@hedera.com> Co-authored-by: Danno Ferrin <danno.ferrin@hedera.com>
Description:
When a from value is in the eth_call params, set it to the senderId.
Related issue(s):
Fixes #373
Notes for reviewer:
Checklist