From fbfe77025fa0835ab9fdaa134f6804ba3c43889a Mon Sep 17 00:00:00 2001 From: karim-en Date: Tue, 2 Jan 2024 14:41:11 +0000 Subject: [PATCH 1/2] Add `min_proof_acceptance_height` --- eth-connector/src/contract.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/eth-connector/src/contract.rs b/eth-connector/src/contract.rs index 880921d..9638075 100644 --- a/eth-connector/src/contract.rs +++ b/eth-connector/src/contract.rs @@ -46,6 +46,7 @@ impl EthConnectorContract { metadata: FungibleTokenMetadata, account_with_access_right: &impl AsRef, owner_id: &impl AsRef, + min_proof_acceptance_height: u64, ) -> CallNew { CallNew::call(&self.contract).args_json(json!({ "prover_account": prover_account.as_ref(), @@ -53,6 +54,7 @@ impl EthConnectorContract { "owner_id": owner_id.as_ref(), "eth_custodian_address": eth_custodian_address, "metadata": metadata, + "min_proof_acceptance_height": min_proof_acceptance_height, })) } From 16d6263d6561cbc1f838016ae15416eadc88ec90 Mon Sep 17 00:00:00 2001 From: karim-en Date: Tue, 2 Jan 2024 16:20:11 +0000 Subject: [PATCH 2/2] Fix test --- eth-connector/tests/fungible_token_tests.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/eth-connector/tests/fungible_token_tests.rs b/eth-connector/tests/fungible_token_tests.rs index 3513257..ee1f634 100644 --- a/eth-connector/tests/fungible_token_tests.rs +++ b/eth-connector/tests/fungible_token_tests.rs @@ -33,6 +33,7 @@ async fn deploy_and_init() -> anyhow::Result { }; let owner_id = AccountId::from_str(OWNER_ID).unwrap(); let account_with_access_right = AccountId::from_str(account.id().as_str()).unwrap(); + let min_proof_acceptance_height = 0; eth_contract .init( @@ -41,6 +42,7 @@ async fn deploy_and_init() -> anyhow::Result { metadata, &account_with_access_right, &owner_id, + min_proof_acceptance_height, ) .transact() .await?;