fix: export TxStatus struct

This commit is contained in:
Mohamed Sohail 2023-04-14 08:05:05 +00:00
parent e91f82c08a
commit 8ef2311d8e
Signed by: kamikazechaser
GPG Key ID: 7DD45520C01CD85D
2 changed files with 4 additions and 4 deletions

View File

@ -22,7 +22,7 @@ type (
GasPrice *big.Int GasPrice *big.Int
Nonce uint64 Nonce uint64
} }
txStatus struct { TxStatus struct {
CreatedAt time.Time `db:"created_at" json:"createdAt"` CreatedAt time.Time `db:"created_at" json:"createdAt"`
Status string `db:"status" json:"status"` Status string `db:"status" json:"status"`
TransferValue uint64 `db:"transfer_value" json:"transferValue"` TransferValue uint64 `db:"transfer_value" json:"transferValue"`
@ -85,9 +85,9 @@ func (s *PgStore) GetNextNonce(
func (s *PgStore) GetTxStatus( func (s *PgStore) GetTxStatus(
ctx context.Context, ctx context.Context,
trackingId string, trackingId string,
) (txStatus, error) { ) (TxStatus, error) {
var ( var (
tx txStatus tx TxStatus
) )
rows, err := s.db.Query( rows, err := s.db.Query(

View File

@ -22,7 +22,7 @@ type (
// Otx related actions. // Otx related actions.
CreateOtx(context.Context, Otx) (uint, error) CreateOtx(context.Context, Otx) (uint, error)
GetNextNonce(context.Context, string) (uint64, error) GetNextNonce(context.Context, string) (uint64, error)
GetTxStatus(context.Context, string) (txStatus, error) GetTxStatus(context.Context, string) (TxStatus, error)
CreateDispatchStatus(context.Context, uint, enum.OtxStatus) error CreateDispatchStatus(context.Context, uint, enum.OtxStatus) error
UpdateDispatchStatus(context.Context, bool, string, uint64) error UpdateDispatchStatus(context.Context, bool, string, uint64) error
// Account related actions. // Account related actions.