Skip to content

Commit

Permalink
Fix compilation error
Browse files Browse the repository at this point in the history
  • Loading branch information
satoshiotomakan committed Jul 21, 2023
1 parent 9384825 commit 97cf9f4
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 10 deletions.
2 changes: 1 addition & 1 deletion rust/coverage.stats
Original file line number Diff line number Diff line change
@@ -1 +1 @@
91.5
92.0
12 changes: 3 additions & 9 deletions rust/tw_coin_entry/src/coin_entry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,21 +74,15 @@ pub trait CoinEntry {

/// It is optional, Signing JSON input with private key.
/// Returns `Ok(None)` if the chain doesn't support signing JSON.
fn json_signer(&self) -> Option<Self::JsonSigner> {
None
}
fn json_signer(&self) -> Option<Self::JsonSigner>;

/// Planning, for UTXO chains, in preparation for signing.
/// Returns an optional `Plan` builder. Only UTXO chains need it.
fn plan_builder(&self) -> Option<Self::PlanBuilder> {
None
}
fn plan_builder(&self) -> Option<Self::PlanBuilder>;

/// Optional helper to prepare a `SigningInput` from simple parameters.
/// Not suitable for UTXO chains.
///
/// Returns `None` if the chain doesn't support creating `SigningInput` from the simple parameters.
fn signing_input_builder(&self) -> Option<Self::InputBuilder> {
None
}
fn signing_input_builder(&self) -> Option<Self::InputBuilder>;
}
4 changes: 4 additions & 0 deletions rust/tw_ethereum/src/entry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,10 @@ impl CoinEntry for EthereumEntry {
Some(EthJsonSigner)
}

fn plan_builder(&self) -> Option<Self::PlanBuilder> {
None
}

fn signing_input_builder(&self) -> Option<Self::InputBuilder> {
Some(EthInputBuilder)
}
Expand Down
1 change: 1 addition & 0 deletions src/rust/Wrapper.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

#pragma once

#include <memory>
#include <optional>

#include "../Data.h"
Expand Down

0 comments on commit 97cf9f4

Please sign in to comment.