We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 86e550d commit 4475f2dCopy full SHA for 4475f2d
wallet/chain/p/wallet.go
@@ -4,7 +4,7 @@
4
package p
5
6
import (
7
- "errors"
+ "fmt"
8
"time"
9
10
"github.com/ava-labs/avalanchego/ids"
@@ -17,11 +17,7 @@ import (
17
"github.com/ava-labs/avalanchego/wallet/subnet/primary/common"
18
)
19
20
-var (
21
- errNotCommitted = errors.New("not committed")
22
-
23
- _ Wallet = (*wallet)(nil)
24
-)
+var _ Wallet = (*wallet)(nil)
25
26
type Wallet interface {
27
Context
@@ -503,7 +499,7 @@ func (w *wallet) IssueTx(
503
499
}
504
500
505
501
if txStatus.Status != status.Committed {
506
- return errNotCommitted
502
+ return fmt.Errorf("not committed: %s", txStatus.Reason)
507
508
return nil
509
0 commit comments