Skip to content

Commit

Permalink
fix(tx serialisation): accept unpackTx output produced by deserialisator
Browse files Browse the repository at this point in the history
  • Loading branch information
davidyuk committed Jun 24, 2021
1 parent 7792201 commit ff0b3f5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/tx/builder/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,8 @@ function serializeField (value, type, prefix) {
return toBytes(value)
case FIELD_TYPES.pointers:
return buildPointers(value)
case FIELD_TYPES.rlpBinary:
return value.rlpEncoded ?? value
case FIELD_TYPES.mptrees:
return value.map(t => t.serialize())
case FIELD_TYPES.ctVersion:
Expand Down

0 comments on commit ff0b3f5

Please sign in to comment.