diff --git a/src/rust/crates/ain-grpc/src/rpc.rs b/src/rust/crates/ain-grpc/src/rpc.rs index 1fe582ab6b..ae6dcb1d8f 100644 --- a/src/rust/crates/ain-grpc/src/rpc.rs +++ b/src/rust/crates/ain-grpc/src/rpc.rs @@ -61,6 +61,7 @@ impl EthServiceApi for EthService { // Get from wallet Ok(EthAccountsResult { accounts: vec![] }) } + fn Eth_GetBalance( handler: Arc, input: EthGetBalanceInput, diff --git a/src/rust/crates/ain-grpc/src/tests.rs b/src/rust/crates/ain-grpc/src/tests.rs index 762282ec64..422a3c10b7 100644 --- a/src/rust/crates/ain-grpc/src/tests.rs +++ b/src/rust/crates/ain-grpc/src/tests.rs @@ -22,8 +22,8 @@ const BOB: &str = "0x0000000000000000000000000000000000000001"; fn should_call() { let handler = Arc::new(Handlers::new()); let tx_info = EthTransactionInfo { - from: ALICE.to_string(), - to: BOB.to_string(), + from: Some(ALICE.to_string()), + to: Some(BOB.to_string()), gas: None, price: None, value: None, diff --git a/src/rust/protobuf/types/eth.proto b/src/rust/protobuf/types/eth.proto index 89f4fe0fcb..6ef43bf63d 100644 --- a/src/rust/protobuf/types/eth.proto +++ b/src/rust/protobuf/types/eth.proto @@ -6,13 +6,13 @@ message EthAccountsResult { } message EthTransactionInfo { - string from = 1; // The address from which the transaction is sent - string to = 2; // The address to which the transaction is addressed + optional string from = 1; // The address from which the transaction is sent + optional string to = 2; // The address to which the transaction is addressed optional uint64 gas = 3; // The integer of gas provided for the transaction execution optional uint64 price = 4; // The integer of gas price used for each paid gas encoded as hexadecimal optional uint64 value = 5; // The integer of value sent with this transaction encoded as hexadecimal optional string data = 6; // The hash of the method signature and encoded parameters. - optional uint64 nonce = 7; // The integer of a nonce. This allows to overwrite your own pending transactions that use the same nonce. + optional uint64 nonce = 7; // The integer of a nonce. This allows to overwrite your own pending transactions that use the same nonce. } message EthBlockInfo {