7558397877
Add test for real main net address Add name to mainnet chain params
12 lines
244 B
Go
12 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())
|
|
}
|