Skip to content

Commit

Permalink
fix(wasmer): ext_storage_exists_version_1 for empty values
Browse files Browse the repository at this point in the history
  • Loading branch information
qdm12 committed Nov 24, 2022
1 parent bdb0eea commit 10c8a58
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/runtime/wasmer/imports.go
Original file line number Diff line number Diff line change
Expand Up @@ -1920,8 +1920,8 @@ func ext_storage_exists_version_1(context unsafe.Pointer, keySpan C.int64_t) C.i
key := asMemorySlice(instanceContext, keySpan)
logger.Debugf("key: 0x%x", key)

val := storage.Get(key)
if len(val) > 0 {
value := storage.Get(key)
if value != nil {
return 1
}

Expand Down

0 comments on commit 10c8a58

Please sign in to comment.