Skip to content

Commit

Permalink
Revert "Closes anoma#2027"
Browse files Browse the repository at this point in the history
This reverts commit 96dd652.
  • Loading branch information
AlexMoskaleu committed Jan 15, 2024
1 parent 6c6e427 commit f42790d
Showing 1 changed file with 1 addition and 24 deletions.
25 changes: 1 addition & 24 deletions shared/src/ledger/native_vp/ethereum_bridge/bridge_pool_vp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,8 @@ use namada_core::hints;
use namada_core::ledger::eth_bridge::storage::bridge_pool::{
get_pending_key, is_bridge_pool_key, BRIDGE_POOL_ADDRESS,
};
use namada_core::ledger::eth_bridge::storage::{active_key, whitelist};
use namada_core::ledger::eth_bridge::storage::whitelist;
use namada_core::ledger::eth_bridge::ADDRESS as BRIDGE_ADDRESS;
use namada_ethereum_bridge::storage::eth_bridge_queries::EthBridgeStatus;
use namada_ethereum_bridge::storage::parameters::read_native_erc20_address;
use namada_ethereum_bridge::storage::wrapped_erc20s;

Expand Down Expand Up @@ -538,28 +537,6 @@ where
verifiers_len = _verifiers.len(),
"Ethereum Bridge Pool VP triggered",
);
{
let status: EthBridgeStatus = BorshDeserialize::try_from_slice(
self.ctx
.storage
.db
.read_subspace_val(&active_key())
.expect(
"Reading the Ethereum bridge active key shouldn't \
fail.",
)
.expect(
"The Ethereum bridge active key should be in storage",
)
.as_slice(),
)
.expect(
"Deserializing the Ethereum bridge active key shouldn't fail.",
);
if matches!(status, EthBridgeStatus::Disabled) {
return Err(eyre!("Bridge closed").into());
}
}
let Some(tx_data) = tx.data() else {
return Err(eyre!("No transaction data found").into());
};
Expand Down

0 comments on commit f42790d

Please sign in to comment.