Skip to content

Commit

Permalink
f: fix consensus transaction code type
Browse files Browse the repository at this point in the history
  • Loading branch information
aefhm committed Mar 14, 2023
1 parent 39e329e commit 01527f4
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions storage/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -279,9 +279,9 @@ func (c *StorageClient) Transactions(ctx context.Context, p apiTypes.GetConsensu
}
for res.rows.Next() {
var t Transaction
var code uint64
var module string
var message string
var code uint32
var module *string
var message *string
if err := res.rows.Scan(
&t.Block,
&t.Index,
Expand All @@ -302,7 +302,7 @@ func (c *StorageClient) Transactions(ctx context.Context, p apiTypes.GetConsensu
t.Success = true
} else {
t.Error = &apiTypes.TxError{
Code: int(code),
Code: code,
Module: module,
Message: message,
}
Expand All @@ -323,9 +323,9 @@ func (c *StorageClient) Transaction(ctx context.Context, txHash string) (*Transa
}

var t Transaction
var code uint64
var module string
var message string
var code uint32
var module *string
var message *string
if err := c.db.QueryRow(
ctx,
queries.Transaction,
Expand All @@ -350,7 +350,7 @@ func (c *StorageClient) Transaction(ctx context.Context, txHash string) (*Transa
t.Success = true
} else {
t.Error = &apiTypes.TxError{
Code: int(code),
Code: code,
Module: module,
Message: message,
}
Expand Down

0 comments on commit 01527f4

Please sign in to comment.