Skip to content

Commit

Permalink
Eth-connector: add min_proof_acceptance_height argument (#40)
Browse files Browse the repository at this point in the history
* Add `min_proof_acceptance_height`

* Fix test
  • Loading branch information
karim-en authored Jan 4, 2024
1 parent dbed355 commit 7c99d93
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions eth-connector/src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,15 @@ impl EthConnectorContract {
metadata: FungibleTokenMetadata,
account_with_access_right: &impl AsRef<str>,
owner_id: &impl AsRef<str>,
min_proof_acceptance_height: u64,
) -> CallNew {
CallNew::call(&self.contract).args_json(json!({
"prover_account": prover_account.as_ref(),
"account_with_access_right": account_with_access_right.as_ref(),
"owner_id": owner_id.as_ref(),
"eth_custodian_address": eth_custodian_address,
"metadata": metadata,
"min_proof_acceptance_height": min_proof_acceptance_height,
}))
}

Expand Down
2 changes: 2 additions & 0 deletions eth-connector/tests/fungible_token_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ async fn deploy_and_init() -> anyhow::Result<EthConnectorContract> {
};
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(
Expand All @@ -41,6 +42,7 @@ async fn deploy_and_init() -> anyhow::Result<EthConnectorContract> {
metadata,
&account_with_access_right,
&owner_id,
min_proof_acceptance_height,
)
.transact()
.await?;
Expand Down

0 comments on commit 7c99d93

Please sign in to comment.