diff --git a/code/pay-to-addr-script.go b/code/pay-to-addr-script.go index 0cc3a35a..b8949544 100644 --- a/code/pay-to-addr-script.go +++ b/code/pay-to-addr-script.go @@ -28,6 +28,7 @@ func PayToAddrScript(addressStr string) { // the address type. It is also required for the upcoming call to // PayToAddrScript. address, err := btcutil.DecodeAddress(addressStr, &btcnet.MainNetParams) + handle(err) // Create a public key script that pays to the address. script, err := btcscript.PayToAddrScript(address)