adapt to FetchSpecificEvent() changes.

This commit is contained in:
fiatjaf
2025-02-17 16:54:31 -03:00
parent 26930d40bc
commit faca2e50f0
2 changed files with 10 additions and 4 deletions

View File

@@ -7,10 +7,11 @@ import (
"strings"
"github.com/fatih/color"
"github.com/urfave/cli/v3"
"github.com/nbd-wtf/go-nostr"
"github.com/nbd-wtf/go-nostr/nip60"
"github.com/nbd-wtf/go-nostr/nip61"
"github.com/nbd-wtf/go-nostr/sdk"
"github.com/urfave/cli/v3"
)
func prepareWallet(ctx context.Context, c *cli.Command) (*nip60.Wallet, func(), error) {
@@ -332,7 +333,9 @@ var wallet = &cli.Command{
var eventId string
if strings.HasPrefix(target, "nevent1") {
evt, _, err = sys.FetchSpecificEventFromInput(ctx, target, false)
evt, _, err = sys.FetchSpecificEventFromInput(ctx, target, sdk.FetchSpecificEventParameters{
WithRelays: false,
})
if err != nil {
return err
}