Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions smoketest/make-bindings.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/usr/bin/env bash

set -eu
source ../web/packages/test/scripts/set-env.sh
rm -rf src/contracts
mkdir -p src/contracts

Expand Down Expand Up @@ -52,11 +53,12 @@ else
--derive ::subxt::ext::subxt_core::ext::codec::Decode
subxt codegen --url ws://localhost:13144 >src/parachains/penpal.rs \
--derive-for-type staging_xcm::v5::location::Location=Clone,recursive \
--derive-for-type staging_xcm::v5::location::Location=::subxt::ext::codec::Encode,recursive \
--derive-for-type staging_xcm::v5::location::Location=::subxt::ext::codec::Decode,recursive \
--derive-for-type xcm::VersionedXcm=::subxt::ext::codec::Encode,recursive \
--derive-for-type xcm::VersionedXcm=::subxt::ext::codec::Decode,recursive \
--derive-for-type staging_xcm::v5::asset::AssetId=Clone,recursive \
--derive-for-type staging_xcm::v5::asset::Assets=Clone,recursive \
--derive ::subxt::ext::subxt_core::ext::codec::Encode \
--derive ::subxt::ext::subxt_core::ext::codec::Decode

--derive-for-type staging_xcm::v5::asset::Assets=Clone,recursive
fi


2 changes: 1 addition & 1 deletion smoketest/src/helper.rs
Original file line number Diff line number Diff line change
Expand Up @@ -763,7 +763,7 @@ pub async fn get_agent_address(
agent_id: [u8; 32],
) -> Result<Address, Box<dyn std::error::Error>> {
let gateway_addr: Address = (*GATEWAY_PROXY_CONTRACT).into();
let gateway = IGatewayV2::new(gateway_addr, *ethereum_client);
let gateway = IGateway::new(gateway_addr, *ethereum_client);
let agent_address = gateway.agentOf(FixedBytes::from(agent_id)).call().await?;
Ok(agent_address)
}
Expand Down
4 changes: 2 additions & 2 deletions web/packages/test/scripts/set-env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ export ETHERSCAN_API_KEY="${ETHERSCAN_API_KEY:-0x0}"
# but for rococo-local each session is only 20 slots=120s
# so relax somehow here just for quick test
# for production deployment ETH_RANDAO_DELAY should be configured in a more reasonable sense
export RANDAO_COMMIT_DELAY="${ETH_RANDAO_DELAY:-3}"
export RANDAO_COMMIT_EXP="${ETH_RANDAO_EXP:-3}"
export RANDAO_COMMIT_DELAY="${ETH_RANDAO_DELAY:-4}"
export RANDAO_COMMIT_EXP="${ETH_RANDAO_EXP:-32}"
export MINIMUM_REQUIRED_SIGNATURES="${MINIMUM_REQUIRED_SIGNATURES:-16}"

## Fee
Expand Down