MsgRemoveClassCreator
a valid message
Given the message
{
"authority":"regen1depk54cuajgkzea6zpgkq36tnjwdzv4ak663u6",
"creator": "regen1depk54cuajgkzea6zpgkq36tnjwdzv4ak663u6"
}
When the message is validated
Then expect no error.
an error is returned if authority address is empty
Given the message
{}
When the message is validated
Then expect the error "invalid authority address: empty address string is not allowed".
an error is returned if authority address is not a valid bech32 address
Given the message
{
"authority": "foo"
}
When the message is validated
Then expect the error "invalid authority address: decoding bech32 failed: invalid bech32 string length 3".
an error is returned if class creator is empty
Given the message
{
"authority": "regen1depk54cuajgkzea6zpgkq36tnjwdzv4ak663u6"
}
When the message is validated
Then expect the error "empty address string is not allowed".
an error is returned if class creator address not a valid bech32 address
Given the message
{
"authority": "regen1depk54cuajgkzea6zpgkq36tnjwdzv4ak663u6",
"creator": "abcd"
}
When the message is validated
Then expect the error "decoding bech32 failed: invalid bech32 string length 4".
a valid amino message
Given the message
{
"authority":"regen1depk54cuajgkzea6zpgkq36tnjwdzv4ak663u6",
"creator": "regen1depk54cuajgkzea6zpgkq36tnjwdzv4ak663u6"
}
When message sign bytes queried
Then expect the sign bytes
{
"type":"regen/MsgRemoveClassCreator",
"value":{
"authority":"regen1depk54cuajgkzea6zpgkq36tnjwdzv4ak663u6",
"creator":"regen1depk54cuajgkzea6zpgkq36tnjwdzv4ak663u6"
}
}