Skip to content

Commit

Permalink
Merge pull request #899 from shiki-tak/unnecessary-string-inclusion
Browse files Browse the repository at this point in the history
Remove unnecessary string
  • Loading branch information
alpe authored Jul 8, 2022
2 parents 3787f3d + 72e8b7d commit 39be44b
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 39be44b

Please sign in to comment.