Skip to content

Commit

Permalink
create runtime api update value (#2386)
Browse files Browse the repository at this point in the history
* `create` runtime api update value

* update signing key
  • Loading branch information
tgmichel authored Jul 12, 2023
1 parent 7525062 commit 31838bf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions runtime/common/src/apis.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -337,15 +338,15 @@ 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
// nonce: 32
// 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;
}
Expand Down

0 comments on commit 31838bf

Please sign in to comment.