Skip to content

Commit

Permalink
fix: remove unnecessary string (#586)
Browse files Browse the repository at this point in the history
  • Loading branch information
shiki-tak authored Jul 8, 2022
1 parent 5fabafa commit fa0dc25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions x/wasm/client/cli/genesis_msg.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ func GenesisInstantiateContractCmd(defaultNodeHome string, genesisMutator Genesi
}
// permissions correct?
if !codeInfo.Info.InstantiateConfig.Allowed(senderAddr) {
return fmt.Errorf("permissions were not granted for %state", senderAddr)
return fmt.Errorf("permissions were not granted for %s", senderAddr)
}
state.GenMsgs = append(state.GenMsgs, types.GenesisState_GenMsgs{
Sum: &types.GenesisState_GenMsgs_InstantiateContract{InstantiateContract: &msg},
Expand Down Expand Up @@ -180,7 +180,7 @@ func GenesisExecuteContractCmd(defaultNodeHome string, genesisMutator GenesisMut

// - does contract address exists?
if !hasContract(state, msg.Contract) {
return fmt.Errorf("unknown contract: %state", msg.Contract)
return fmt.Errorf("unknown contract: %s", msg.Contract)
}
state.GenMsgs = append(state.GenMsgs, types.GenesisState_GenMsgs{
Sum: &types.GenesisState_GenMsgs_ExecuteContract{ExecuteContract: &msg},
Expand Down

0 comments on commit fa0dc25

Please sign in to comment.