Last active
November 23, 2020 23:48
-
-
Save clevinson/c51f1aad81a716968695033a5b183055 to your computer and use it in GitHub Desktop.
Failing test from coinbase team when updating to v0.40.0-rc2 from v0.40.0-rc1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func TestFoo(t *testing.T) { | |
parsedMsg := &types.MsgCreateValidator{} | |
msg := `{"type":"cosmos-sdk/MsgCreateValidator","value":{"description":{"moniker":"tuba","identity":"asd123","website":"hi.com","details":"tuba123"},"commission":{"rate":"1.000000000000000000","max_rate":"1.000000000000000000","max_change_rate":"0.500000000000000000"},"min_self_delegation":"1000000","delegator_address":"cosmos12dfh66m5m2xq9qdqvu90u4n8lqnep8ymesu95a","validator_address":"cosmosvaloper12dfh66m5m2xq9qdqvu90u4n8lqnep8ymuygscw","pubkey":"cosmosvalconspub1zcjduepq3vqv2yeqju6jrf29trwz2zl8fy3lmamzgllsw8t224spal8mvpssenzes5","value":{"denom":"umuon","amount":"1000000"}}}` | |
cdc := makeAminoMarshaler() | |
err := cdc.UnmarshalJSON([]byte(msg), parsedMsg) | |
fmt.Println(err) | |
fmt.Println(parsedMsg) | |
} | |
// [Error Msg]: cannot parse disfix JSON wrapper: json: cannot unmarshal string into Go value of type amino.disfixWrapper |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment