Skip to content

Commit

Permalink
cleanup comments, fix upgrade gateway test
Browse files Browse the repository at this point in the history
  • Loading branch information
claravanstaden authored and claravanstaden committed Oct 25, 2023
1 parent fb81e42 commit cd463df
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions smoketest/tests/upgrade_gateway.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ use ethers::{
};
use futures::StreamExt;
use hex_literal::hex;
use snowbridge_smoketest::parachains::bridgehub::api::runtime_types::snowbridge_core::outbound::Initializer;
use snowbridge_smoketest::{
contracts::{
gateway_upgrade_mock::{self, InitializedFilter},
Expand All @@ -30,7 +31,7 @@ use snowbridge_smoketest::{
},
},
};
use sp_core::{blake2_256, sr25519::Pair, Pair as PairT};
use sp_core::{sr25519::Pair, Pair as PairT};
use subxt::{
tx::{PairSigner, TxPayload},
OnlineClient, PolkadotConfig,
Expand Down Expand Up @@ -74,7 +75,6 @@ async fn upgrade_gateway() {
let d_0 = 99;
let d_1 = 66;
let params = ethers::abi::encode(&[Token::Uint(d_0.into()), Token::Uint(d_1.into())]);
let params_hash = blake2_256(&params);

let code = ethereum_client
.get_code(
Expand All @@ -91,7 +91,10 @@ async fn upgrade_gateway() {
.upgrade(
GATETWAY_UPGRADE_MOCK_CONTRACT.into(),
gateway_upgrade_mock_code_hash.into(),
Some(params),
Some(Initializer {
params: params,
maximum_required_gas: 0,
}),
)
.encode_call_data(&bridgehub.metadata())
.expect("encoded call");
Expand Down

0 comments on commit cd463df

Please sign in to comment.