diff --git a/vmhost/contexts/storage.go b/vmhost/contexts/storage.go index dfb741d08..b6e877865 100644 --- a/vmhost/contexts/storage.go +++ b/vmhost/contexts/storage.go @@ -179,9 +179,7 @@ func (context *storageContext) GetStorageFromAddress(address []byte, key []byte) metadata := vmcommon.CodeMetadataFromBytes(userAcc.GetCodeMetadata()) if !metadata.Readable && !isReadFromUserAddress { errGas := context.useExtraGasForKeyIfNeeded(key, false) - if errGas != nil { - return nil, 0, false, errGas - } + return nil, 0, false, errGas } }