diff --git a/smoketest/tests/upgrade_gateway.rs b/smoketest/tests/upgrade_gateway.rs index 348488d06f..cb844e9c7d 100644 --- a/smoketest/tests/upgrade_gateway.rs +++ b/smoketest/tests/upgrade_gateway.rs @@ -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}, @@ -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, @@ -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(¶ms); let code = ethereum_client .get_code( @@ -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");