Skip to content

Commit

Permalink
update tests/chains/ethereum/contracts
Browse files Browse the repository at this point in the history
Signed-off-by: Masanori Yoshida <[email protected]>
  • Loading branch information
siburu committed Oct 15, 2024
1 parent 75b2d41 commit f646f26
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 13 deletions.
13 changes: 7 additions & 6 deletions tests/chains/ethereum/contracts/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions tests/chains/ethereum/contracts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"description": "",
"license": "Apache-2.0",
"devDependencies": {
"@datachainlab/ethereum-ibc-relay-chain": "git+https://github.com/datachainlab/ethereum-ibc-relay-chain.git#semver:v0.3.10",
"@hyperledger-labs/yui-ibc-solidity": "git+https://github.com/hyperledger-labs/yui-ibc-solidity.git#semver:v0.3.35",
"@datachainlab/ethereum-ibc-relay-chain": "git+https://github.com/siburu/ethereum-ibc-relay-chain.git#fix-proposeAppVersion",
"@hyperledger-labs/yui-ibc-solidity": "git+https://github.com/hyperledger-labs/yui-ibc-solidity.git#semver:v0.3.39",
"@nomicfoundation/hardhat-toolbox": "^4.0.0",
"@openzeppelin/hardhat-upgrades": "^3.2.1",
"hardhat": "^2.19.1"
Expand Down
10 changes: 5 additions & 5 deletions tests/chains/ethereum/contracts/scripts/deploy.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,11 @@ async function deployApp(deployer, ibcHandler) {
const impl = await prepareImplementation(deployer, proxyV1, contractName, [ibcHandler.target], unsafeAllow);
saveAddress(contractName, impl);

await proxyV1.proposeAppVersion(`mockapp-${i}`, {
implementation: impl.target,
initialCalldata: impl.interface.encodeFunctionData(`__${contractName}_init(string)`, [contractName]),
consumed: false,
}).then(tx => tx.wait());
await proxyV1.proposeAppVersion(
`mockapp-${i}`,
impl.target,
impl.interface.encodeFunctionData(`__${contractName}_init(string)`, [contractName]),
).then(tx => tx.wait());
}

return proxyV1;
Expand Down

0 comments on commit f646f26

Please sign in to comment.