Skip to content
This repository has been archived by the owner on Mar 13, 2023. It is now read-only.

Commit

Permalink
workaround: #188
Browse files Browse the repository at this point in the history
  • Loading branch information
aurexav committed Aug 19, 2020
1 parent 5641125 commit 8202c2a
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 28 deletions.
33 changes: 16 additions & 17 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 12 additions & 11 deletions frame/bridge/ethereum/relay/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -186,22 +186,23 @@ decl_module! {

/// A `RawHeadThing` version of `submit_proposal`
#[weight = 100_000_000]
pub fn submit_raw_proposal(origin, raw_header_thing_chain: Vec<RawHeaderThing>) {
pub fn submit_proposal(origin, raw_header_thing_chain: Vec<RawHeaderThing>) {
let relayer = ensure_signed(origin)?;
T::RelayerGame::submit_proposal(relayer, raw_header_thing_chain)?;
}

#[weight = 100_000_000]
pub fn submit_proposal(origin, eth_header_thing_chain: Vec<EthHeaderThing>) {
let relayer = ensure_signed(origin)?;
let raw_header_thing_chain = eth_header_thing_chain
.iter()
.map(|x| x.encode())
.collect::<Vec<_>>();

T::RelayerGame::submit_proposal(relayer, raw_header_thing_chain)?;
}

// #[weight = 100_000_000]
// pub fn submit_proposal(origin, eth_header_thing_chain: Vec<EthHeaderThing>) {
// let relayer = ensure_signed(origin)?;
// let raw_header_thing_chain = eth_header_thing_chain
// .iter()
// .map(|x| x.encode())
// .collect::<Vec<_>>();
//
// T::RelayerGame::submit_proposal(relayer, raw_header_thing_chain)?;
// }

#[weight = 100_000_000]
pub fn approve_pending_header(origin, pending: EthBlockNumber) {
T::ApproveOrigin::ensure_origin(origin)?;
Expand Down

0 comments on commit 8202c2a

Please sign in to comment.