Skip to content

Commit

Permalink
fix: svm ts issues
Browse files Browse the repository at this point in the history
Signed-off-by: Pablo Maldonado <pablomaldonadoturci@gmail.com>
  • Loading branch information
md0x committed Oct 2, 2024
1 parent a2afefe commit 0b95bb9
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 8 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
17 changes: 15 additions & 2 deletions test/svm/SvmSpoke.common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};
Expand Down
5 changes: 1 addition & 4 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
}
2 changes: 1 addition & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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==
Expand Down

0 comments on commit 0b95bb9

Please sign in to comment.