Skip to content

Commit 35da682

Browse files
authored
fix: return error on builder error (#321)
Signed-off-by: Chris Gianelloni <[email protected]>
1 parent 6898719 commit 35da682

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

internal/tx/tx.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,12 @@ func createTx(blockData any, nonce [16]byte) ([]byte, error) {
9393
myAddress, _ := serAddress.DecodeAddress(bursa.PaymentAddress)
9494
cc := NewCustomChainContext()
9595
apollob := apollo.New(&cc)
96-
apollob, _ = apollob.
96+
apollob, err = apollob.
9797
SetWalletFromBech32(bursa.PaymentAddress).
9898
SetWalletAsChangeAddress()
99+
if err != nil {
100+
return nil, err
101+
}
99102

100103
// Gather input UTxOs from our wallet
101104
store.Lock()

0 commit comments

Comments
 (0)