Skip to content

Commit

Permalink
minor tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
brewmaster012 committed Mar 6, 2024
1 parent f78eb47 commit 0c167cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/bitcoin/address_taproot_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func TestAddressTaproot(t *testing.T) {
// these hex string comes from link
// https://mempool.space/tx/41f7cbaaf9a8d378d09ee86de32eebef455225520cb71015cc9a7318fb42e326
witnessProg, err := hex.DecodeString("af06f3d4c726a3b952f2f648d86398af5ddfc3df27aa531d97203987add8db2e")
addr, err := newAddressTaproot("bc", witnessProg[:])
addr, err := NewAddressTaproot(witnessProg[:], &chaincfg.MainNetParams)
require.Nil(t, err)
require.Equal(t, addr.EncodeAddress(), "bc1p4ur084x8y63mj5hj7eydscuc4awals7ly749x8vhyquc0twcmvhquspa5c")
}
Expand Down

0 comments on commit 0c167cd

Please sign in to comment.