Skip to content

Commit

Permalink
fix: fix v0.9.1 (#54)
Browse files Browse the repository at this point in the history
  • Loading branch information
arkadiuszos4chain authored Nov 24, 2023
1 parent 74e6901 commit d996d9c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ func ExampleNewClient() {
return
}
fmt.Printf("loaded client: %s", client.GetOptions().userAgent)
// Output:loaded client: go-paymail: v0.8.0
// Output:loaded client: go-paymail: v0.9.1
}

// BenchmarkNewClient benchmarks the method NewClient()
Expand Down
2 changes: 1 addition & 1 deletion definitions.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const (
defaultSSLTimeout = 10 * time.Second // Default timeout in seconds
defaultUserAgent = "go-paymail: " + version // Default user agent
defaultNetwork = byte(Mainnet) // Default network
version = "v0.8.0" // Go-Paymail version
version = "v0.9.1" // Go-Paymail version
)

// Public defaults for paymail specs
Expand Down
12 changes: 7 additions & 5 deletions p2p_send_transaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import (
"fmt"
"net/http"
"strings"

"github.com/bitcoin-sv/go-paymail/beef"
)

/*
Expand All @@ -24,11 +26,11 @@ Example:

// P2PTransaction is the request body for the P2P transaction request
type P2PTransaction struct {
Hex string `json:"hex"` // The raw transaction, encoded as a hexadecimal string
Beef string `json:"beef"` // The transaction in hex BEEF format
DecodedBeef *DecodedBEEF `json:"decodedBeef"` // Decoded BEEF transaction
MetaData *P2PMetaData `json:"metadata"` // An object containing data associated with the transaction
Reference string `json:"reference"` // Reference for the payment (from previous P2P Destination request)
Hex string `json:"hex"` // The raw transaction, encoded as a hexadecimal string
Beef string `json:"beef"` // The transaction in hex BEEF format
DecodedBeef *beef.DecodedBEEF `json:"decodedBeef"` // Decoded BEEF transaction
MetaData *P2PMetaData `json:"metadata"` // An object containing data associated with the transaction
Reference string `json:"reference"` // Reference for the payment (from previous P2P Destination request)
}

// P2PMetaData is an object containing data associated with the P2P transaction
Expand Down

0 comments on commit d996d9c

Please sign in to comment.