diff --git a/examples/x2y2-database/src/processor.ts b/examples/x2y2-database/src/processor.ts index 88250718ae..48fcf7949f 100644 --- a/examples/x2y2-database/src/processor.ts +++ b/examples/x2y2-database/src/processor.ts @@ -36,15 +36,19 @@ ERC20Processor.bind({ address: '0x1e4ede388cbc9f4b5c79681b7f94d36a11abebc9' }).o tokenCounter.add(ctx, val) // exporter.emit(ctx, event) const from = new User({ + name: 'from', id: event.args.from }) await ctx.store.upsert(from) const to = new User({ + name: 'to', id: event.args.to }) await ctx.store.upsert(to) const transfer = new Transfer({ + arrayValue: [], + bigIntValue: 0n, id: event.transactionHash, amount: val }) diff --git a/packages/sdk/src/sui/context.ts b/packages/sdk/src/sui/context.ts index c8afd0a565..3426d79907 100644 --- a/packages/sdk/src/sui/context.ts +++ b/packages/sdk/src/sui/context.ts @@ -179,6 +179,7 @@ export class SuiAddressContext extends MoveAccountContext< export class SuiObjectContext extends SuiAddressContext { contractName = 'object' objectId: string + objectVersion: bigint constructor( network: SuiNetwork, @@ -190,5 +191,6 @@ export class SuiObjectContext extends SuiAddressContext { ) { super(network, objectId, checkpoint, timestamp, baseLabels) this.objectId = objectId + this.objectVersion = objectVersion } }