File tree Expand file tree Collapse file tree 2 files changed +19
-5
lines changed
cosmwasm/ibc-union/app/ucs03-zkgm/src Expand file tree Collapse file tree 2 files changed +19
-5
lines changed Original file line number Diff line number Diff line change @@ -3462,5 +3462,19 @@ fn predict_call_proxy_account(
3462
3462
}
3463
3463
3464
3464
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
+ ) ;
3466
3480
}
Original file line number Diff line number Diff line change 819
819
"ucs03" : {
820
820
"address" : " union1336jj8ertl8h7rdvnz4dh5rqahd09cy0x43guhsxx6xyrztx292qpe64fh" ,
821
821
"height" : 354920 ,
822
- "commit" : " ebdda43a8fe0c5a02112427980080eaeb38bbe38 " ,
823
- "code_id" : 228 ,
822
+ "commit" : " 5767f3185b82e98b1d3c3d01c58b5e49162612d6 " ,
823
+ "code_id" : 234 ,
824
824
"minter" : {
825
825
"type" : " cw20" ,
826
826
"address" : " union1t5awl707x54k6yyx7qfkuqp890dss2pqgwxh07cu44x5lrlvt4rs8hqmk0" ,
844
844
"lst" : {
845
845
"address" : " union1d2r4ecsuap4pujrlf3nz09vz8eha8y0z25knq0lfxz4yzn83v6kq0jxsmk" ,
846
846
"height" : 2758268 ,
847
- "commit" : " dirty " ,
848
- "code_id" : 230
847
+ "commit" : " 5767f3185b82e98b1d3c3d01c58b5e49162612d6 " ,
848
+ "code_id" : 231
849
849
},
850
850
"on_zkgm_call_proxy" : {
851
851
"address" : " union1mtxk8tjz85ry2a8a6k58uwrztmwslaxzsurh5l0dlxh7wrnvmxkshqkuwd" ,
You can’t perform that action at this time.
0 commit comments