Skip to content

Commit

Permalink
fix(sui): enable object change (#632)
Browse files Browse the repository at this point in the history
  • Loading branch information
zfy0701 authored Nov 6, 2023
1 parent 5797f4b commit 7d9f2fc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
name: Install pnpm package manager
command: |
sudo corepack enable
sudo corepack prepare pnpm@latest-8 --activate
sudo corepack prepare pnpm@8.9.2 --activate
- run:
name: Install Dependencies
command: |
Expand Down
9 changes: 7 additions & 2 deletions packages/sdk/src/sui/sui-plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,6 @@ export class SuiPlugin extends Plugin {
this.handlers = handlers
}

supportedHandlers = [HandlerType.SUI_EVENT, HandlerType.SUI_CALL, HandlerType.SUI_OBJECT]

async processSuiEvent(binding: DataBinding): Promise<ProcessResult> {
if (!binding.data?.suiEvent) {
throw new ServerError(Status.INVALID_ARGUMENT, "Event can't be empty")
Expand Down Expand Up @@ -259,6 +257,13 @@ export class SuiPlugin extends Plugin {
return mergeProcessResults(await Promise.all(promises))
}

supportedHandlers = [
HandlerType.SUI_EVENT,
HandlerType.SUI_CALL,
HandlerType.SUI_OBJECT,
HandlerType.SUI_OBJECT_CHANGE
]

processBinding(request: DataBinding): Promise<ProcessResult> {
switch (request.handlerType) {
case HandlerType.SUI_EVENT:
Expand Down

0 comments on commit 7d9f2fc

Please sign in to comment.