mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-08-22 18:43:15 +00:00
Update tests for recent btcutil.Address API change.
This commit is contained in:
parent
7d228846bd
commit
79b6e51dff
@ -2929,6 +2929,13 @@ func (b *bogusAddress) IsForNet(net *btcnet.Params) bool {
|
|||||||
return true // why not?
|
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) {
|
func TestPayToAddrScript(t *testing.T) {
|
||||||
// 1MirQ9bwyQcGVJPwKUgapu5ouK2E2Ey4gX
|
// 1MirQ9bwyQcGVJPwKUgapu5ouK2E2Ey4gX
|
||||||
p2pkhMain, err := btcutil.NewAddressPubKeyHash([]byte{
|
p2pkhMain, err := btcutil.NewAddressPubKeyHash([]byte{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user