From 58fab61f4a4b0171d9a303a2c5f13728e41c9ea1 Mon Sep 17 00:00:00 2001 From: classicalliu Date: Tue, 15 Oct 2019 12:53:14 +0800 Subject: [PATCH] chore: add lock to input toInterface --- packages/neuron-wallet/src/database/chain/entities/input.ts | 1 + packages/neuron-wallet/src/types/cell-types.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/neuron-wallet/src/database/chain/entities/input.ts b/packages/neuron-wallet/src/database/chain/entities/input.ts index bf498f4e6b..b72bb12f30 100644 --- a/packages/neuron-wallet/src/database/chain/entities/input.ts +++ b/packages/neuron-wallet/src/database/chain/entities/input.ts @@ -64,6 +64,7 @@ export default class Input extends BaseEntity { previousOutput: this.previousOutput(), capacity: this.capacity, lockHash: this.lockHash, + lock: this.lock, } } } diff --git a/packages/neuron-wallet/src/types/cell-types.ts b/packages/neuron-wallet/src/types/cell-types.ts index 150dec9946..05f0659d68 100644 --- a/packages/neuron-wallet/src/types/cell-types.ts +++ b/packages/neuron-wallet/src/types/cell-types.ts @@ -62,7 +62,7 @@ export interface Input { since?: string capacity?: string | null lockHash?: string | null - lock?: Script + lock?: Script | null } export interface Cell {