13 lines
244 B
Go
13 lines
244 B
Go
|
package lbrycrd
|
||
|
|
||
|
import "testing"
|
||
|
|
||
|
func TestDecodeAddress(t *testing.T) {
|
||
|
addr := "bMUxfQVUeDi7ActVeZJZHzHKBceai7kHha"
|
||
|
btcAddr, err := DecodeAddress(addr, &MainNetParams)
|
||
|
if err != nil {
|
||
|
t.Error(err)
|
||
|
}
|
||
|
println(btcAddr.EncodeAddress())
|
||
|
}
|