Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ model transaction {
datetime DateTime? @db.Timestamptz(6)
date DateTime? @db.Date
gasUsed Int? @map("gas_used")
receipt String @db.VarChar
receipt Json @db.JsonB
status String? @db.VarChar
event event[]
internal_transaction internal_transaction[]
Expand Down
4 changes: 2 additions & 2 deletions src/converters/tx.converters.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ function rawTxToEntity ({
type,
timestamp,
status,
receipt: JSON.stringify(receipt),
receipt,
txType,
txId,
datetime,
Expand Down Expand Up @@ -93,7 +93,7 @@ function transactionEntityToRaw ({
type,
timestamp: Number(timestamp),
status,
receipt: JSON.parse(receipt || '{}'),
receipt,
txType,
txId,
datetime,
Expand Down
Loading