Skip to content
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

fevm_test: delegate call test #10010

Merged
merged 3 commits into from
Jan 19, 2023
Merged

Conversation

snissn
Copy link
Contributor

@snissn snissn commented Jan 14, 2023

Related Issues

filecoin-project/ref-fvm#1320

Proposed Changes

refactor of fevm_test, addition of delegate call test and a script to compile the .sol solidity files to .hex

Checklist

Before you mark the PR ready for review, please make sure that:

  • Commits have a clear commit message.
  • PR title is in the form of of <PR type>: <area>: <change being made>
    • example: fix: mempool: Introduce a cache for valid signatures
    • PR type: fix, feat, build, chore, ci, docs, perf, refactor, revert, style, test
    • area, e.g. api, chain, state, market, mempool, multisig, networking, paych, proving, sealing, wallet, deps
  • New features have usage guidelines and / or documentation updates in
  • Tests exist for new functionality or change in behavior
  • CI is green

… compile the .sol solidity files to .hex, add sharable methods into kit/evm
@snissn snissn requested a review from a team as a code owner January 14, 2023 03:05
@arajasek
Copy link
Contributor

@snissn Thanks for reopening!

@shrenujbansal Can you please continue this conversation here?

@snissn
Copy link
Contributor Author

snissn commented Jan 16, 2023

I'm a +=1 not a ++ kind of guy what can i say :) but i'll yield to the golinter for now -- pushed a commit to address both of your comments @arajasek

Copy link
Contributor

@magik6k magik6k left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lint CI seems to be complaining, but other than that looks good

Comment on lines +29 to +32
fromId, err := client.StateLookupID(ctx, from, types.EmptyTSK)
require.NoError(t, err)

senderEthAddr, err := ethtypes.EthAddressFromFilecoinAddress(fromId)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if the client.StateLookupID is needed, but I guess this works either way in itests.

@magik6k magik6k mentioned this pull request Jan 17, 2023
7 tasks
@magik6k magik6k merged commit 2f03bf9 into release/v1.20.0 Jan 19, 2023
@magik6k magik6k deleted the snissn/delegatecalltest3 branch January 19, 2023 13:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants