|
|
@ -10,8 +10,7 @@ class Struct extends RefType { |
|
|
|
|
|
|
|
|
|
|
|
async decodeFromStorage (location, storageResolver) { |
|
|
|
async decodeFromStorage (location, storageResolver) { |
|
|
|
const ret = {} |
|
|
|
const ret = {} |
|
|
|
for (var k in this.members) { |
|
|
|
for (var item of this.members) { |
|
|
|
const item = this.members[k] |
|
|
|
|
|
|
|
const globalLocation = { |
|
|
|
const globalLocation = { |
|
|
|
offset: location.offset + item.storagelocation.offset, |
|
|
|
offset: location.offset + item.storagelocation.offset, |
|
|
|
slot: util.add(location.slot, item.storagelocation.slot) |
|
|
|
slot: util.add(location.slot, item.storagelocation.slot) |
|
|
|