Skip to content

Commit

Permalink
chore(runtime): compatible with raw aptos message
Browse files Browse the repository at this point in the history
  • Loading branch information
zfy0701 committed Nov 20, 2024
1 parent a6bdca4 commit d185e5a
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions packages/runtime/src/full-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,13 +134,13 @@ export class FullProcessorServiceImpl implements ProcessorServiceImplementation
}
}
break
// case HandlerType.APT_RESOURCE:
// if (dataBinding.data?.aptResource) {
// if (dataBinding.data.aptResource.rawResources && dataBinding.data.aptResource.rawResources.length > 0) {
// dataBinding.data.aptResource.resources = dataBinding.data.aptResource.rawResources.map(e => JSON.parse(e))
// }
// }
// break
case HandlerType.APT_RESOURCE:
if (dataBinding.data?.aptResource?.resources) {
if (dataBinding.data.aptResource.rawResources && dataBinding.data.aptResource.rawResources.length > 0) {
dataBinding.data.aptResource.resources = dataBinding.data.aptResource.rawResources.map((e) => JSON.parse(e))
}
}
break
case HandlerType.UNKNOWN:
if (dataBinding.data?.ethBlock) {
if (dataBinding.data.raw.length === 0) {
Expand Down

0 comments on commit d185e5a

Please sign in to comment.