Skip to content

Commit

Permalink
kovan: types are strings from db
Browse files Browse the repository at this point in the history
  • Loading branch information
tynes committed Jun 1, 2021
1 parent 1e765a8 commit 62cbedf
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions packages/data-transport-layer/src/db/transport-db.ts
Original file line number Diff line number Diff line change
Expand Up @@ -380,9 +380,15 @@ export class TransportDB {
return null
}
const entry = await this.db.get<TEntry>(`${key}:index`, index)
if ((entry as any).gasLimit) {
;(entry as any).gasLimit = BigNumber.from(
(entry as any).gasLimit
).toString()
}
if ((entry as any).decoded) {
(entry as any).decoded.gasLimit =
BigNumber.from((entry as any).decoded.gasLimit).toString()
;(entry as any).decoded.gasLimit = BigNumber.from(
(entry as any).decoded.gasLimit
).toString()
}
return entry
}
Expand Down

0 comments on commit 62cbedf

Please sign in to comment.