Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Eth-connector: add min_proof_acceptance_height argument #40

Merged
merged 2 commits into from
Jan 4, 2024
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
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