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

EVM Precompile integration test #1379

Open
wants to merge 36 commits into
base: evm
Choose a base branch
from

Conversation

jewei1997
Copy link
Contributor

@jewei1997 jewei1997 commented Feb 26, 2024

Describe your changes and provide context

  • Add hardhat tests for each of the precompiles
  • Test different precompile functions

Testing performed to validate your change

  • Verified with seilocal hardhat run
  • Verified with npx hardhat test --network seilocal test/EVMPrecompileTester.js

Copy link

codecov bot commented Feb 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 63.27%. Comparing base (c932310) to head (49843a1).

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##              evm    #1379      +/-   ##
==========================================
+ Coverage   63.16%   63.27%   +0.11%     
==========================================
  Files         350      350              
  Lines       23760    23760              
==========================================
+ Hits        15008    15035      +27     
+ Misses       7896     7864      -32     
- Partials      856      861       +5     

see 3 files with indirect coverage changes

@Kbhat1 Kbhat1 changed the title [WIP] EVM bank precompile integration test EVM Precompile integration test Feb 29, 2024
@codecov-commenter
Copy link

codecov-commenter commented Mar 1, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 63.03%. Comparing base (c932310) to head (56c40c4).

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##              evm    #1379      +/-   ##
==========================================
- Coverage   63.16%   63.03%   -0.13%     
==========================================
  Files         350      350              
  Lines       23760    23760              
==========================================
- Hits        15008    14978      -30     
- Misses       7896     7923      +27     
- Partials      856      859       +3     

see 3 files with indirect coverage changes

@jewei1997
Copy link
Contributor Author

make sure you merge to seiv2

@Kbhat1 Kbhat1 changed the base branch from evm to seiv2 March 14, 2024 13:40
@Kbhat1 Kbhat1 changed the base branch from seiv2 to evm March 14, 2024 13:40
expect(diff).to.equal(1);
});

it("Approve and TransferFrom functions", async function() {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

can you do a transferFrom without doing an approve and make sure it fails?

Copy link
Contributor

Choose a reason for hiding this comment

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

Updated

console.log("end of before");
});

it("Transfer function", async function() {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

can we do a transfer from an address with no token balance and make sure it fails

Copy link
Contributor

Choose a reason for hiding this comment

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

Updated

@Kbhat1 Kbhat1 changed the base branch from evm to seiv2 March 14, 2024 19:43
@Kbhat1 Kbhat1 changed the base branch from seiv2 to evm March 14, 2024 19:50
@Kbhat1 Kbhat1 force-pushed the evm-bank-precompile-integration-test branch from f3122e3 to b7bb3a9 Compare March 14, 2024 20:09
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.

4 participants