Skip to content

Commit

Permalink
dtl: handle null
Browse files Browse the repository at this point in the history
  • Loading branch information
tynes committed Jun 1, 2021
1 parent cc9e1c7 commit 59c7ba5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/data-transport-layer/src/db/transport-db.ts
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,9 @@ export class TransportDB {
}

function stringify(entry) {
if (entry === null || entry === undefined) {
return entry
}
if (entry.gasLimit) {
entry.gasLimit = BigNumber.from(entry.gasLimit).toString()
}
Expand Down

0 comments on commit 59c7ba5

Please sign in to comment.