mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2025-05-06 19:55:10 +00:00
parent
df3eb76aa2
commit
2096ad6e81
32 changed files with 134 additions and 159 deletions
|
@ -7,7 +7,7 @@ import (
|
|||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"io"
|
||||
"math/big"
|
||||
"os"
|
||||
"path/filepath"
|
||||
|
@ -129,7 +129,7 @@ func testSyscallHandler(v *VM, id uint32) error {
|
|||
}
|
||||
|
||||
func testFile(t *testing.T, filename string) {
|
||||
data, err := ioutil.ReadFile(filename)
|
||||
data, err := os.ReadFile(filename)
|
||||
require.NoError(t, err)
|
||||
|
||||
// get rid of possible BOM
|
||||
|
@ -472,7 +472,7 @@ func decodeBytes(data []byte) ([]byte, error) {
|
|||
}
|
||||
|
||||
r := base64.NewDecoder(base64.StdEncoding, bytes.NewReader(data))
|
||||
return ioutil.ReadAll(r)
|
||||
return io.ReadAll(r)
|
||||
}
|
||||
|
||||
func decodeHex(s string) ([]byte, error) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue