depracte-ioutil (#934)
This commit is contained in:
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user