Skip to content

Commit d2028a8

Browse files
author
Ilan
committed
Fork from testnet
1 parent d7462e6 commit d2028a8

File tree

1 file changed

+20
-5
lines changed

1 file changed

+20
-5
lines changed

framework/components/blockchain/anvilZksync.go

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,19 @@ import (
1010
"github.com/smartcontractkit/chainlink-testing-framework/framework"
1111
)
1212

13+
var AnvilZKSyncRichAccountPks = []string{
14+
"ac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80",
15+
"59c6995e998f97a5a0044966f0945389dc9e86dae88c7a8412f4603b6b78690d",
16+
"5de4111afa1a4b94908f83103eb1f1706367c2e68ca870fc3fb9a804cdab365a",
17+
"7c852118294e51e653712a81e05800f419141751be58f605c371e15141b007a6",
18+
"47e179ec197488593b187f80a00eb0da91f1b9d0b13f8733639f19c30a34926a",
19+
"8b3a350cf5c34c9194ca85829a2df0ec3153be0318b5e2d3348e872092edffba",
20+
"92db14e403b83dfe3df233f83dfa3a0d7096f21ca9b0d6d6b8d88b2b4ec1564e",
21+
"4bbbf85ce3377467afe5d46f804f221813b2bb87f24d81f60f1fcdbf7cbf4356",
22+
"dbda1821b80551c9d65939329250298aa3472ba22feea921c0cf5d620ea67b97",
23+
"2a871d0798f97d79848a013d4936a73bf4cc922c825d33c1cf7073dff6d409c6",
24+
}
25+
1326
func defaultAnvilZksync(in *Input) {
1427
if in.ChainID == "" {
1528
in.ChainID = "260"
@@ -51,17 +64,19 @@ func newAnvilZksync(in *Input) (*Output, error) {
5164
req.Entrypoint = []string{
5265
"/bin/sh",
5366
"-c",
54-
"/root/.foundry/bin/anvil-zksync --offline --chain-id " + in.ChainID + " --port " + in.Port + " run",
67+
"/root/.foundry/bin/anvil-zksync" +
68+
" --chain-id " + in.ChainID +
69+
" --port " + in.Port +
70+
" fork --fork-url https://sepolia.era.zksync.dev",
5571
}
5672

5773
framework.L.Info().Any("Cmd", strings.Join(req.Entrypoint, " ")).Msg("Creating anvil with command")
5874

5975
output, err := createGenericEvmContainer(in, req)
60-
if err != nil {
61-
return nil, err
62-
}
76+
// try to delete the file even if there is an error
77+
_ = os.RemoveAll(tempDir)
6378

64-
if err := os.RemoveAll(tempDir); err != nil {
79+
if err != nil {
6580
return nil, err
6681
}
6782

0 commit comments

Comments
 (0)