Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
nadim-az committed Dec 18, 2024
1 parent e419467 commit 2569b47
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
run: |
make tidy
git submodule update --init --recursive
cd tests/e2e/lib/openzeppelin-contracts && git checkout v4.8.0
cd tests/e2e/lib/openzeppelin-contracts && git checkout v4.8.0 // this matches the dependency version in hyperlane
cd ../openzeppelin-contracts-upgradeable && git checkout v4.8.0
cd ../hyperlane-monorepo/solidity && yarn install --frozen-lockfile
cd ../../../../.. && make e2e-test
Expand Down
6 changes: 3 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ keys.json.plaintext
solver.db
vendor
.idea
out
cache
broadcast
config/local/config.yml
config/local/keys.json
out
broadcast
cache
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ setup-foundry:
foundry-rs/forge-std \
OpenZeppelin/[email protected] \
OpenZeppelin/[email protected] \
hyperlane-xyz/hyperlane-monorepo \
--no-commit
hyperlane-xyz/hyperlane-monorepo --no-commit \
&& cd lib/hyperlane-monorepo/solidity && yarn install --frozen-lockfile

.PHONY: e2e-test
e2e-test:
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ docker run skip-go-fast-solver

```shell
make unit-test

make setup-foundry # install end to end test dependencies
make e2e-test
```

Expand Down
3 changes: 1 addition & 2 deletions tests/e2e/e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ func (s *SolverTestSuite) SetupSuite(ctx context.Context) {

s.Require().NoError(err, fmt.Sprintf("error deploying contracts: \nstderr: %s\nstdout: %s\nerr: %s", stderr, stdout, err))

// deploy Hyperlane contracts with a different set of remappings
// deploy hyperlane contracts with a different set of remappings
hyperlaneDeployOutput, stderr, err := eth.ForgeScript(ctx, s.deployer.KeyName(), ethereum.ForgeScriptOpts{
ContractRootDir: "./tests/e2e",
SolidityContract: "scripts/HyperlaneTestDeploy.s.sol:HyperlaneTestDeploy",
Expand Down Expand Up @@ -179,7 +179,6 @@ func (s *SolverTestSuite) TestDeploy() {
s.SetupSuite(ctx)

s.Require().True(s.Run("Verify deployment", func() {
// Verify that the contracts have been deployed
s.Require().True(s.Run("Verify ERC20 Genesis", func() {
userBalance, err := s.erc20Contract.BalanceOf(nil, crypto.PubkeyToAddress(s.key.PublicKey))
s.Require().NoError(err)
Expand Down

0 comments on commit 2569b47

Please sign in to comment.