depracte-ioutil (#934)

This commit is contained in:
Jacob Gadikian
2022-08-24 15:21:16 +07:00
committed by GitHub
parent 2a37cfd339
commit 4875db2055
15 changed files with 47 additions and 49 deletions

View File

@@ -2,7 +2,7 @@ package benchmarks
import (
"encoding/json"
"io/ioutil"
"os"
"testing"
"time"
@@ -119,7 +119,7 @@ func InitializeWasmApp(b testing.TB, db dbm.DB, numAccounts int) AppInfo {
wasmApp.BeginBlock(abci.RequestBeginBlock{Header: tmproto.Header{Height: height, Time: time.Now()}})
// upload the code
cw20Code, err := ioutil.ReadFile("./testdata/cw20_base.wasm")
cw20Code, err := os.ReadFile("./testdata/cw20_base.wasm")
require.NoError(b, err)
storeMsg := wasmtypes.MsgStoreCode{
Sender: addr.String(),