From ff818e82a73a90412c700f437036c8be19ecf694 Mon Sep 17 00:00:00 2001 From: IrshadKohl51 Date: Mon, 22 Sep 2025 19:28:22 +0800 Subject: [PATCH] BIP158: Replace ioutil.ReadFile with os.ReadFile --- bip-0158/gentestvectors.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bip-0158/gentestvectors.go b/bip-0158/gentestvectors.go index bf6d9a741e..7bed2b5305 100644 --- a/bip-0158/gentestvectors.go +++ b/bip-0158/gentestvectors.go @@ -13,7 +13,6 @@ import ( "encoding/json" "fmt" "io" - "io/ioutil" "os" "path/filepath" @@ -164,7 +163,7 @@ func main() { writerFile = writer - cert, err := ioutil.ReadFile(defaultBtcdRPCCertFile) + cert, err := os.ReadFile(defaultBtcdRPCCertFile) if err != nil { fmt.Println("Couldn't read RPC cert: ", err.Error()) return