Skip to content

Commit

Permalink
Merge pull request #705 from eosnetworkfoundation/elmato/decode-metam…
Browse files Browse the repository at this point in the history
…ask-transactions

Allow decoding of dynamic fee transactions generated by Metamask
  • Loading branch information
elmato committed Apr 30, 2024
2 parents 27ff51d + 07af521 commit 9fa90c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/evm_runtime/transaction.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ struct transaction {
eosio::check(rlptx_.has_value(), "no rlptx");
ByteView bv{(const uint8_t*)rlptx_->data(), rlptx_->size()};
silkworm::Transaction tmp;
eosio::check(silkworm::rlp::decode(bv, tmp) && bv.empty(), "unable to decode transaction");
eosio::check(silkworm::rlp::decode_transaction(bv, tmp, silkworm::rlp::Eip2718Wrapping::kBoth) && bv.empty(), "unable to decode transaction");
tx_.emplace(tmp);
}
return tx_.value();
Expand Down

0 comments on commit 9fa90c6

Please sign in to comment.