From 31838bfbaede2aefd8d2c5318c5e38c60db67a6d Mon Sep 17 00:00:00 2001 From: tgmichel Date: Wed, 12 Jul 2023 18:02:18 +0200 Subject: [PATCH] `create` runtime api update value (#2386) * `create` runtime api update value * update signing key --- runtime/common/src/apis.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/runtime/common/src/apis.rs b/runtime/common/src/apis.rs index 4a923b97b6..ddf3fa0dbc 100644 --- a/runtime/common/src/apis.rs +++ b/runtime/common/src/apis.rs @@ -273,6 +273,7 @@ macro_rules! impl_runtime_apis_plus_common { // chain id 8 bytes // 65 bytes signature 210; + if max_fee_per_gas.is_some() { estimated_transaction_len += 32; } @@ -337,7 +338,6 @@ macro_rules! impl_runtime_apis_plus_common { let validate = true; let mut estimated_transaction_len = data.len() + - // to: 20 // from: 20 // value: 32 // gas_limit: 32 @@ -345,7 +345,8 @@ macro_rules! impl_runtime_apis_plus_common { // 1 byte transaction action variant // chain id 8 bytes // 65 bytes signature - 210; + 190; + if max_fee_per_gas.is_some() { estimated_transaction_len += 32; }