From 45186837d40e340fff17117779fa9fc244a16e67 Mon Sep 17 00:00:00 2001 From: DimitrisJim Date: Tue, 25 Jul 2023 15:14:17 +0300 Subject: [PATCH] fix wrapf warning --- modules/light-clients/08-wasm/keeper/keeper.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/light-clients/08-wasm/keeper/keeper.go b/modules/light-clients/08-wasm/keeper/keeper.go index dd2cf2b2f78..486f0e2d063 100644 --- a/modules/light-clients/08-wasm/keeper/keeper.go +++ b/modules/light-clients/08-wasm/keeper/keeper.go @@ -95,7 +95,7 @@ func (k Keeper) storeWasmCode(ctx sdk.Context, code []byte) ([]byte, error) { // pin the code to the vm in-memory cache if err := k.wasmVM.Pin(codeHash); err != nil { - return nil, errorsmod.Wrapf(err, "failed to pin contract with code hash (%) to vm cache", codeHash) + return nil, errorsmod.Wrapf(err, "failed to pin contract with code hash (%s) to vm cache", codeHash) } // safety check to assert that code hash returned by WasmVM equals to code hash @@ -105,4 +105,4 @@ func (k Keeper) storeWasmCode(ctx sdk.Context, code []byte) ([]byte, error) { store.Set(codeHashKey, code) return codeHash, nil -} \ No newline at end of file +}