Skip to content

Instantly share code, notes, and snippets.

@echo "Installing protoc-gen-buf-check-breaking..."
@curl -sSL \
- "https://github.com/bufbuild/buf/releases/download/v${BUF_VERSION}/protoc-gen-buf-check-breaking-${UNAME_S}-${UNAME_M}" \
- -o "${BIN}/protoc-gen-buf-check-breaking" && \
+ -o "${BIN}/protoc-gen-buf-check-breaking" \
+ "https://github.com/bufbuild/buf/releases/download/v${BUF_VERSION}/protoc-gen-buf-check-breaking-${UNAME_S}-${UNAME_M}" && \
chmod +x "${BIN}/protoc-gen-buf-check-breaking"
@echo "Installing buf..."
@curl -sSL \
@clevinson
clevinson / test.go
Last active November 23, 2020 23:48
Failing test from coinbase team when updating to v0.40.0-rc2 from v0.40.0-rc1
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
window.keplr.experimentalSuggestChain({
// Chain-id of the Cosmos SDK chain.
chainId: "regen-devnet-4",
// The name of the chain to be displayed to the user.
chainName: "Regen Devnet",
// RPC endpoint of the chain.
rpc: "http://devnet.regen.network:26657",
// REST endpoint of the chain.
rest: "https://devnet.regen.network",
// Staking coin information
alias simd='/path/to/simd'
SIMD_HOME=$(pwd)/.simd
CHAIN_ID=test-chain
##### Setup moniker, chain, homedir
simd init cory --chain-id $CHAIN_ID --home $SIMD_HOME
const connectToKeplr = async (): Promise<any> => {
if (window.keplr) {
window.keplr
.experimentalSuggestChain({
// Chain-id of the Regen chain.
chainId,
// The name of the chain to be displayed to the user.
chainName: 'Regen Devnet',
// RPC endpoint of the chain.
rpc: 'http://devnet.regen.network:26657',
Apr 09 17:05:05 ip-172-31-40-188 regen[753]: panic: signature verification failed; please verify account number (0) and chain-id (regen-devnet-5): unauthorized
Apr 09 17:05:05 ip-172-31-40-188 regen[31857]: goroutine 1 [running]:
Apr 09 17:05:05 ip-172-31-40-188 regen[31857]: github.com/cosmos/cosmos-sdk/x/genutil.DeliverGenTxs(0x20aef40, 0xc00003e048, 0x20c4c80, 0xc00007f300, 0x0, 0x0, 0xc00108c710, 0xe, 0x0, 0x0, ...)
Apr 09 17:05:05 ip-172-31-40-188 regen[31857]: github.com/cosmos/cosmos-sdk@v0.42.0-rc0/x/genutil/gentx.go:113 +0x328
Apr 09 17:05:05 ip-172-31-40-188 regen[31857]: github.com/cosmos/cosmos-sdk/x/genutil.InitGenesis(...)
Apr 09 17:05:05 ip-172-31-40-188 regen[31857]: github.com/cosmos/cosmos-sdk@v0.42.0-rc0/x/genutil/genesis.go:18
Apr 09 17:05:05 ip-172-31-40-188 regen[31857]: github.com/cosmos/cosmos-sdk/x/genutil.AppModule.InitGenesis(0x20a9440, 0xc00015d200, 0x2071d60, 0xc000d79600, 0xc001093c40, 0x7f7758837158, 0xc00101a2c0, 0x20aef40, 0xc00003e048, 0x20c4c80, ...)
Apr 09 1

0x1f7ec12e77ea39e5da9a1d75b5a0d21105a6b36c0649fbaf7bcd435ab8a3992c