diff --git a/package.json b/package.json index 18fd7558..b3a8a88b 100644 --- a/package.json +++ b/package.json @@ -40,7 +40,7 @@ }, "dependencies": { "@across-protocol/constants": "^3.1.15", - "@coral-xyz/anchor": "^0.30.0", + "@coral-xyz/anchor": "^0.30.1", "@defi-wonderland/smock": "^2.3.4", "@eth-optimism/contracts": "^0.5.40", "@ethersproject/abstract-provider": "5.7.0", diff --git a/test/svm/SvmSpoke.common.ts b/test/svm/SvmSpoke.common.ts index afc54e74..6f011e9f 100644 --- a/test/svm/SvmSpoke.common.ts +++ b/test/svm/SvmSpoke.common.ts @@ -56,8 +56,21 @@ const initializeState = async ( }; } await program.methods - .initialize(...[actualSeed, ...Object.values(initialState)]) - .accounts({ state: state as any, signer: owner, systemProgram: anchor.web3.SystemProgram.programId }) + .initialize( + actualSeed, + initialState.initialNumberOfDeposits.toNumber(), + initialState.chainId, + initialState.remoteDomain.toNumber(), + initialState.crossDomainAdmin, + initialState.testableMode, + initialState.depositQuoteTimeBuffer.toNumber(), + initialState.fillDeadlineBuffer.toNumber() + ) + .accounts([ + { pubkey: state, isSigner: false, isWritable: false }, + { pubkey: owner, isSigner: true, isWritable: false }, + { pubkey: anchor.web3.SystemProgram.programId, isSigner: false, isWritable: false }, + ]) .rpc(); return state; }; diff --git a/tsconfig.json b/tsconfig.json index 33ff5e59..6ae24d7e 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -18,9 +18,6 @@ "tasks/enableL1TokenAcrossEcosystem.ts", "utils/utils.ts" ], - "exclude": [ - "./test/svm", // Added exclusion for /test/svm &/scripts/svm files until we fix build issues on types. - "./scripts/svm" - ], + "exclude": ["./scripts/svm"], "files": ["./hardhat.config.ts"] } diff --git a/yarn.lock b/yarn.lock index 400a1fdc..5b936a33 100644 --- a/yarn.lock +++ b/yarn.lock @@ -321,7 +321,7 @@ resolved "https://registry.yarnpkg.com/@coral-xyz/anchor-errors/-/anchor-errors-0.30.1.tgz#bdfd3a353131345244546876eb4afc0e125bec30" integrity sha512-9Mkradf5yS5xiLWrl9WrpjqOrAV+/W2RQHDlbnAZBivoGpOs1ECjoDCkVk4aRG8ZdiFiB8zQEVlxf+8fKkmSfQ== -"@coral-xyz/anchor@^0.30.0": +"@coral-xyz/anchor@^0.30.1": version "0.30.1" resolved "https://registry.yarnpkg.com/@coral-xyz/anchor/-/anchor-0.30.1.tgz#17f3e9134c28cd0ea83574c6bab4e410bcecec5d" integrity sha512-gDXFoF5oHgpriXAaLpxyWBHdCs8Awgf/gLHIo6crv7Aqm937CNdY+x+6hoj7QR5vaJV7MxWSQ0NGFzL3kPbWEQ==