Skip to content

Commit

Permalink
fix: starknet txn gas fee when status is pending.
Browse files Browse the repository at this point in the history
  • Loading branch information
Zhangguiguang committed Jun 28, 2023
1 parent 6a117ba commit 4ac294e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/starknet/chain.go
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@ func (c *Chain) FetchTransactionDetail(hash string) (detail *base.TransactionDet
receiver := calldata[6]
amountHex := calldata[7]
amountInt := hexToBigInt(amountHex)
maxFeeInt := hexToBigInt(txn.Transaction.MaxFee)
detail = &base.TransactionDetail{
HashString: txn.Transaction.TransactionHash,

Expand All @@ -199,7 +200,8 @@ func (c *Chain) FetchTransactionDetail(hash string) (detail *base.TransactionDet

Amount: amountInt.String(),
Status: mapTransactionStatus(txn.Status),
// EstimateFees string

EstimateFees: maxFeeInt.String(),
// FinishTimestamp int64
// FailureMessage string
}
Expand Down

0 comments on commit 4ac294e

Please sign in to comment.