From 0712585a1ca46fde754481ded9dc774f52c2b19f Mon Sep 17 00:00:00 2001 From: strmfos <155266597+strmfos@users.noreply.github.com> Date: Thu, 28 Aug 2025 13:11:57 +0200 Subject: [PATCH] BIP-158: replace deprecated io/ioutil 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 bf6d9a74..5a32892f 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