From 79b6e51dff2d8250bfb3b6f8b1b9271f4ec3eb7e Mon Sep 17 00:00:00 2001 From: Dave Collins Date: Wed, 2 Jul 2014 19:36:06 -0500 Subject: [PATCH] Update tests for recent btcutil.Address API change. --- script_test.go | 7 +++++++ 1 file changed, 7 insertions(+) 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{