MsgRemoveAllowedDenom
a valid message
Given the message
{
"authority": "regen1elq7ys34gpkj3jyvqee0h6yk4h9wsfxmgqelsw",
"denom": "uregen"
}
When the message is validated
Then expect no error.
an error is returned if authority 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 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 denom is empty
Given the message
{
"authority": "regen1elq7ys34gpkj3jyvqee0h6yk4h9wsfxmgqelsw"
}
When the message is validated
Then expect the error "denom cannot be empty: invalid request".
an error is returned if denom is not valid denom
Given the message
{
"authority": "regen1elq7ys34gpkj3jyvqee0h6yk4h9wsfxmgqelsw",
"denom": "1"
}
When the message is validated
Then expect the error "denom: invalid denom: 1: invalid request".
a valid amino message
Given the message
{
"authority": "regen1elq7ys34gpkj3jyvqee0h6yk4h9wsfxmgqelsw",
"denom": "uregen"
}
When message sign bytes queried
Then expect the sign bytes
{
"type":"regen.marketplace/MsgRemoveAllowedDenom",
"value":{
"authority":"regen1elq7ys34gpkj3jyvqee0h6yk4h9wsfxmgqelsw",
"denom":"uregen"
}
}