lbry.go/schema/stake/stake_test.go
2021-10-06 16:28:17 -04:00

33 lines
593 B
Go

package stake
import "testing"
func TestClaimHelper(t *testing.T) {
for _, rawClaim := range rawClaims {
helper, err := DecodeClaimHex(rawClaim, "lbrycrd_main")
if err != nil {
t.Error(err)
}
_, err = helper.RenderJSON()
if err != nil {
t.Error(err)
}
_, err = helper.serialized()
if err != nil {
t.Error(err)
}
_, err = helper.serializedHexString()
if err != nil {
t.Error(err)
}
_, err = helper.serializedNoSignature()
if err != nil {
t.Error(err)
}
err = helper.ValidateAddresses("lbrycrd_main")
if err != nil {
t.Error(err)
}
}
}