From 97cf9f407459794c5b085d782d2fe559e6667c48 Mon Sep 17 00:00:00 2001 From: Satoshi Otomakan Date: Fri, 21 Jul 2023 13:37:41 +0200 Subject: [PATCH] Fix compilation error --- rust/coverage.stats | 2 +- rust/tw_coin_entry/src/coin_entry.rs | 12 +++--------- rust/tw_ethereum/src/entry.rs | 4 ++++ src/rust/Wrapper.h | 1 + 4 files changed, 9 insertions(+), 10 deletions(-) diff --git a/rust/coverage.stats b/rust/coverage.stats index 937c1783095..7d7ab43dc7c 100644 --- a/rust/coverage.stats +++ b/rust/coverage.stats @@ -1 +1 @@ -91.5 \ No newline at end of file +92.0 \ No newline at end of file diff --git a/rust/tw_coin_entry/src/coin_entry.rs b/rust/tw_coin_entry/src/coin_entry.rs index 3f122a97878..d0cdf1d0c11 100644 --- a/rust/tw_coin_entry/src/coin_entry.rs +++ b/rust/tw_coin_entry/src/coin_entry.rs @@ -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 { - None - } + fn json_signer(&self) -> Option; /// Planning, for UTXO chains, in preparation for signing. /// Returns an optional `Plan` builder. Only UTXO chains need it. - fn plan_builder(&self) -> Option { - None - } + fn plan_builder(&self) -> Option; /// 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 { - None - } + fn signing_input_builder(&self) -> Option; } diff --git a/rust/tw_ethereum/src/entry.rs b/rust/tw_ethereum/src/entry.rs index 317c5d9bcdf..a3362441abe 100644 --- a/rust/tw_ethereum/src/entry.rs +++ b/rust/tw_ethereum/src/entry.rs @@ -82,6 +82,10 @@ impl CoinEntry for EthereumEntry { Some(EthJsonSigner) } + fn plan_builder(&self) -> Option { + None + } + fn signing_input_builder(&self) -> Option { Some(EthInputBuilder) } diff --git a/src/rust/Wrapper.h b/src/rust/Wrapper.h index 105b8b09e4e..0485bf7212a 100644 --- a/src/rust/Wrapper.h +++ b/src/rust/Wrapper.h @@ -6,6 +6,7 @@ #pragma once +#include #include #include "../Data.h"