Skip to content
This repository has been archived by the owner on Sep 18, 2020. It is now read-only.

Commit

Permalink
estimated_gas_cost_of_withdraw = "200000" everywhere
Browse files Browse the repository at this point in the history
  • Loading branch information
snd committed Feb 27, 2018
1 parent cca0f01 commit 5dc909a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions integration-tests/bridge_config.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
# READ THE CONFIG DOCUMENTATION AT:
# https://github.com/paritytech/parity-bridge/#configuration

# ACTION REQUIRED: for test deployment set this to `"100000"`
estimated_gas_cost_of_withdraw = "100000"
estimated_gas_cost_of_withdraw = "200000"

# limits total balance on `home` and therefore total ether that could get lost
# if the bridge is faulty or compromised in any way!
Expand Down
4 changes: 2 additions & 2 deletions integration-tests/tests/basic_deposit_then_withdraw.rs
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ fn test_basic_deposit_then_withdraw() {
}, None)).unwrap();
assert_eq!(
home.functions().estimated_gas_cost_of_withdraw().output(response.0.as_slice()).unwrap(),
U256::from(100000),
U256::from(200000),
"estimated gas cost of withdraw must be correct");

println!("\ngive authority some funds to do relay later\n");
Expand Down Expand Up @@ -301,7 +301,7 @@ fn test_basic_deposit_then_withdraw() {
// test that withdraw completed
let balance = event_loop.run(home_eth.balance(receiver_address.into(), None)).unwrap();
println!("balance = {}", balance);
assert_eq!(balance, web3::types::U256::from(900000000));
assert_eq!(balance, web3::types::U256::from(800000000));

// ensure home contract balance has decreased
let balance = event_loop.run(home_eth.balance(home_contract_address.into(), None)).unwrap();
Expand Down

0 comments on commit 5dc909a

Please sign in to comment.