Skip to content

Commit

Permalink
[chore]: Rebased onto PR #573
Browse files Browse the repository at this point in the history
  • Loading branch information
batconjurer committed Oct 25, 2022
1 parent 34b40e8 commit 8f6036b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 17 deletions.
1 change: 0 additions & 1 deletion shared/src/ledger/eth_bridge/bridge_pool_vp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ use crate::ledger::storage::{DBIter, DB};
use crate::proto::SignedTxData;
use crate::types::address::{xan, Address, InternalAddress};
use crate::types::eth_bridge_pool::PendingTransfer;
use crate::types::keccak::encode::Encode;
use crate::types::storage::Key;
use crate::types::token::{balance_key, Amount};
use crate::vm::WasmCacheAccess;
Expand Down
16 changes: 0 additions & 16 deletions shared/src/types/storage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -656,22 +656,6 @@ impl KeySeg for KeccakHash {
}
}

impl KeySeg for KeccakHash {
fn parse(seg: String) -> Result<Self> {
seg.clone()
.try_into()
.map_err(|_| Error::ParseError(seg, "Hash".into()))
}

fn raw(&self) -> String {
self.to_string()
}

fn to_db_key(&self) -> DbKeySeg {
DbKeySeg::StringSeg(self.raw())
}
}

/// Epoch identifier. Epochs are identified by consecutive numbers.
#[derive(
Clone,
Expand Down

0 comments on commit 8f6036b

Please sign in to comment.