Skip to content

Commit

Permalink
typo fix
Browse files Browse the repository at this point in the history
  • Loading branch information
louisinger committed Feb 6, 2025
1 parent b098199 commit c23a8ed
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions pkg/client-sdk/covenantless_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ import (
"golang.org/x/exp/slices"
)

// SetleOptions is only available for covenantless clients
// SettleOptions is only available for covenantless clients
// it allows to customize the vtxo signing process
type SetleOptions struct {
type SettleOptions struct {
ExtraSignerSessions []bitcointree.SignerSession
SigningType *tree.SigningType
WalletSignerDisabled bool
Expand All @@ -48,7 +48,7 @@ type SetleOptions struct {

func WithEventsCh(ch chan<- client.RoundEvent) Option {
return func(o interface{}) error {
opts, ok := o.(*SetleOptions)
opts, ok := o.(*SettleOptions)
if !ok {
return fmt.Errorf("invalid options type")
}
Expand All @@ -60,7 +60,7 @@ func WithEventsCh(ch chan<- client.RoundEvent) Option {

// WithoutWalletSigner disables the wallet signer
func WithoutWalletSigner(o interface{}) error {
opts, ok := o.(*SetleOptions)
opts, ok := o.(*SettleOptions)
if !ok {
return fmt.Errorf("invalid options type")
}
Expand All @@ -71,7 +71,7 @@ func WithoutWalletSigner(o interface{}) error {

// WithSignAll sets the signing type to ALL instead of the default BRANCH
func WithSignAll(o interface{}) error {
opts, ok := o.(*SetleOptions)
opts, ok := o.(*SettleOptions)
if !ok {
return fmt.Errorf("invalid options type")
}
Expand All @@ -84,7 +84,7 @@ func WithSignAll(o interface{}) error {
// WithExtraSigner allows to use a set of custom signer for the vtxo tree signing process
func WithExtraSigner(signerSessions ...bitcointree.SignerSession) Option {
return func(o interface{}) error {
opts, ok := o.(*SetleOptions)
opts, ok := o.(*SettleOptions)
if !ok {
return fmt.Errorf("invalid options type")
}
Expand Down Expand Up @@ -898,7 +898,7 @@ func (a *covenantlessArkClient) SendOffChain(
func (a *covenantlessArkClient) RedeemNotes(ctx context.Context, notes []string, opts ...Option) (string, error) {
amount := uint64(0)

options := &SetleOptions{}
options := &SettleOptions{}
for _, opt := range opts {
if err := opt(options); err != nil {
return "", err
Expand Down Expand Up @@ -1026,7 +1026,7 @@ func (a *covenantlessArkClient) CollaborativeRedeem(
addr string, amount uint64, withExpiryCoinselect bool,
opts ...Option,
) (string, error) {
options := &SetleOptions{}
options := &SettleOptions{}
for _, opt := range opts {
if err := opt(options); err != nil {
return "", err
Expand Down Expand Up @@ -1431,7 +1431,7 @@ func (a *covenantlessArkClient) sendOffchain(
settleOpts ...Option,
) (string, error) {

options := &SetleOptions{}
options := &SettleOptions{}
for _, opt := range settleOpts {
if err := opt(options); err != nil {
return "", err
Expand Down Expand Up @@ -2942,7 +2942,7 @@ func buildRedeemTx(
return bitcointree.BuildRedeemTx(ins, outs)
}

func (a *covenantlessArkClient) handleOptions(options *SetleOptions, inputs []client.Input, notesInputs []string) ([]bitcointree.SignerSession, []string, tree.SigningType, error) {
func (a *covenantlessArkClient) handleOptions(options *SettleOptions, inputs []client.Input, notesInputs []string) ([]bitcointree.SignerSession, []string, tree.SigningType, error) {
var signingType tree.SigningType
if options.SigningType != nil {
signingType = *options.SigningType
Expand Down

0 comments on commit c23a8ed

Please sign in to comment.