Skip to content

Commit

Permalink
chore: Format code
Browse files Browse the repository at this point in the history
  • Loading branch information
duanyytop committed Jul 31, 2024
1 parent 3b8817c commit 119dfb8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 13 deletions.
2 changes: 1 addition & 1 deletion apps/service/src/json-rpc/json-rpc.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export class JsonRpcServer {
}
const name = metadata.name
? `${metadata.name}.${methodMetadata.name ?? methodName}`
: methodMetadata.name ?? methodName;
: (methodMetadata.name ?? methodName);
const handler = (params: unknown) => {
const instanceRef = this.moduleRef.get(instance.constructor, { strict: false });
return instanceRef[methodName](params);
Expand Down
8 changes: 1 addition & 7 deletions packages/ckb/src/utils/ckb-tx.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
import {
PERSONAL,
blake2b,
hexToBytes,
serializeInput,
serializeScript,
} from '@nervosnetwork/ckb-sdk-utils';
import { PERSONAL, blake2b, hexToBytes, serializeInput, serializeScript } from '@nervosnetwork/ckb-sdk-utils';
import { RawClusterData, packRawClusterData, SporeDataProps, packRawSporeData } from '@spore-sdk/core';
import { remove0x, u64ToLe } from './hex';
import {
Expand Down
6 changes: 1 addition & 5 deletions packages/ckb/src/utils/rgbpp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,7 @@ import {
RgbppCkbTxInputsExceededError,
RgbppUtxoBindMultiTypeAssetsError,
} from '../error';
import {
calculateRgbppCellCapacity,
isScriptEqual,
isUDTTypeSupported,
} from './ckb-tx';
import { calculateRgbppCellCapacity, isScriptEqual, isUDTTypeSupported } from './ckb-tx';
import { blockchain } from '@ckb-lumos/base';
import {
bytesToHex,
Expand Down

0 comments on commit 119dfb8

Please sign in to comment.