diff --git a/script_test.go b/script_test.go index 40bde3ee1..5c3013654 100644 --- a/script_test.go +++ b/script_test.go @@ -2929,6 +2929,13 @@ func (b *bogusAddress) IsForNet(net *btcnet.Params) bool { return true // why not? } +// String simply returns an empty string. It exists to satsify the +// btcutil.Address interface. +func (b *bogusAddress) String() string { + return "" +} + + func TestPayToAddrScript(t *testing.T) { // 1MirQ9bwyQcGVJPwKUgapu5ouK2E2Ey4gX p2pkhMain, err := btcutil.NewAddressPubKeyHash([]byte{