diff --git a/commercial-paper/organization/digibank/application-go/business/addtowallet.go b/commercial-paper/organization/digibank/application-go/business/addtowallet.go index 65ff4178..bc3bddf0 100644 --- a/commercial-paper/organization/digibank/application-go/business/addtowallet.go +++ b/commercial-paper/organization/digibank/application-go/business/addtowallet.go @@ -1,7 +1,6 @@ package business import ( - "io/ioutil" "log" "os" "path/filepath" @@ -42,11 +41,11 @@ func AddUser() error { privateKeyPath := filepath.Join(credPath, "keystore", "priv_sk") log.Println("privateKeyPath: " + privateKeyPath) // read the certificate pem - certificate, err := ioutil.ReadFile(filepath.Clean(certPath)) + certificate, err := os.ReadFile(filepath.Clean(certPath)) if err != nil { return err } - privateKey, err := ioutil.ReadFile(filepath.Clean(privateKeyPath)) + privateKey, err := os.ReadFile(filepath.Clean(privateKeyPath)) if err != nil { return err }