Skip to content

Commit

Permalink
[goreleaser] final build
Browse files Browse the repository at this point in the history
  • Loading branch information
trajan0x committed Jun 22, 2024
1 parent 4ba86bd commit b3faae2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
7 changes: 4 additions & 3 deletions contrib/opbot/botmd/commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -222,13 +222,14 @@ func (b *Bot) rfqLookupCommand() *slacker.CommandDefinition {
}}
}

func toExplorerSlackLink(rfqHash string) string {
func toExplorerSlackLink(ogHash string) string {
rfqHash := strings.ToUpper(ogHash)
// cut off 0x
if len(rfqHash) == 0 {
if len(rfqHash) > 0 {
rfqHash = strings.ToUpper(rfqHash[2:])
}

Check warning on line 230 in contrib/opbot/botmd/commands.go

View check run for this annotation

Codecov / codecov/patch

contrib/opbot/botmd/commands.go#L225-L230

Added lines #L225 - L230 were not covered by tests

return fmt.Sprintf("<https://anon.to/?https://explorer.synapseprotocol.com/tx/%s|%s>", rfqHash, "View on Synapse Explorer")
return fmt.Sprintf("<https://anon.to/?https://explorer.synapseprotocol.com/tx/%s|%s>", rfqHash, ogHash)

Check warning on line 232 in contrib/opbot/botmd/commands.go

View check run for this annotation

Codecov / codecov/patch

contrib/opbot/botmd/commands.go#L232

Added line #L232 was not covered by tests
}

// produce a salck link if the explorer exists.
Expand Down
10 changes: 6 additions & 4 deletions services/rfq/relayer/relapi/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,12 @@ func (h *Handler) GetQuoteRequestStatusByTxHash(c *gin.Context) {
}

resp := GetQuoteRequestStatusResponse{
Status: quoteRequest.Status.String(),
TxID: hexutil.Encode(quoteRequest.TransactionID[:]),
OriginTxHash: quoteRequest.OriginTxHash.String(),
DestTxHash: quoteRequest.DestTxHash.String(),
Status: quoteRequest.Status.String(),
TxID: hexutil.Encode(quoteRequest.TransactionID[:]),
OriginTxHash: quoteRequest.OriginTxHash.String(),
OriginChainID: quoteRequest.Transaction.OriginChainId,
DestChainID: quoteRequest.Transaction.DestChainId,
DestTxHash: quoteRequest.DestTxHash.String(),
}
c.JSON(http.StatusOK, resp)
}
Expand Down

0 comments on commit b3faae2

Please sign in to comment.