Skip to content

Commit 677f093

Browse files
authored
fixes (#5135)
2 parents 19b4684 + 817359e commit 677f093

File tree

2 files changed

+19
-5
lines changed

2 files changed

+19
-5
lines changed

cosmwasm/ibc-union/app/ucs03-zkgm/src/contract.rs

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3462,5 +3462,19 @@ fn predict_call_proxy_account(
34623462
}
34633463

34643464
fn proxy_account_salt(path: U256, channel_id: ChannelId, sender: Bytes) -> H256 {
3465-
keccak256((path, channel_id.raw(), sender).abi_encode())
3465+
keccak256((path, channel_id.raw(), sender).abi_encode_params())
3466+
}
3467+
3468+
#[test]
3469+
fn proxy_salt() {
3470+
let path = U256::ZERO;
3471+
let channel_id = ChannelId!(20);
3472+
let sender = hex_literal::hex!("2C96e52fCE14BAa13868CA8182f8A7903e4e76E0");
3473+
3474+
let salt = proxy_account_salt(path, channel_id, sender.into());
3475+
3476+
assert_eq!(
3477+
salt.get(),
3478+
&hex_literal::hex!("6122846875c88a0694bb88749a175b0409aba7377dec45ba67824daef3fed7ab")
3479+
);
34663480
}

deployments/deployments.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -819,8 +819,8 @@
819819
"ucs03": {
820820
"address": "union1336jj8ertl8h7rdvnz4dh5rqahd09cy0x43guhsxx6xyrztx292qpe64fh",
821821
"height": 354920,
822-
"commit": "ebdda43a8fe0c5a02112427980080eaeb38bbe38",
823-
"code_id": 228,
822+
"commit": "5767f3185b82e98b1d3c3d01c58b5e49162612d6",
823+
"code_id": 234,
824824
"minter": {
825825
"type": "cw20",
826826
"address": "union1t5awl707x54k6yyx7qfkuqp890dss2pqgwxh07cu44x5lrlvt4rs8hqmk0",
@@ -844,8 +844,8 @@
844844
"lst": {
845845
"address": "union1d2r4ecsuap4pujrlf3nz09vz8eha8y0z25knq0lfxz4yzn83v6kq0jxsmk",
846846
"height": 2758268,
847-
"commit": "dirty",
848-
"code_id": 230
847+
"commit": "5767f3185b82e98b1d3c3d01c58b5e49162612d6",
848+
"code_id": 231
849849
},
850850
"on_zkgm_call_proxy": {
851851
"address": "union1mtxk8tjz85ry2a8a6k58uwrztmwslaxzsurh5l0dlxh7wrnvmxkshqkuwd",

0 commit comments

Comments
 (0)