bugfix pass reader writer
@@ -66,6 +66,7 @@ func (p *State) ReaderWriter() ReaderWriter {
// ReadFile exposes an injected file loader.
func (p *State) ReadFile(source string) ([]byte, error) {
+ fmt.Println("#", p.readerWriter)
return p.readerWriter.ReadFile(source)
}
@@ -246,6 +247,7 @@ func Init(readerWriter ReaderWriter, sigAlgo crypto.SignatureAlgorithm, hashAlgo
return &State{
confLoader: loader,
+ readerWriter: readerWriter,
conf: config.DefaultConfig(),
accounts: Accounts{*emulatorServiceAccount},
}, nil
