mirror of https://github.com/certusone/wasmd.git
Remove unnecessary string
This commit is contained in:
parent
3787f3dc43
commit
72e8b7d40b
|
@ -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},
|
||||
|
@ -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},
|
||||
|
|
Loading…
Reference in New Issue