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

View File

@ -22,7 +22,7 @@ type (
// Otx related actions.
CreateOtx(context.Context, Otx) (uint, 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
UpdateDispatchStatus(context.Context, bool, string, uint64) error
// Account related actions.