Update tests for recent btcutil.Address API change.

This commit is contained in:
Dave Collins 2014-07-02 19:36:06 -05:00
parent 7d228846bd
commit 79b6e51dff

View file

@ -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{