[trezor-connect] Fix Output types

This commit is contained in:
Federico Bond
2019-01-29 15:31:08 -03:00
parent 180f90a377
commit a61dfc4958

View File

@@ -249,7 +249,13 @@ export interface Input {
export interface RegularOutput {
address: string;
amount: string;
script_type: string;
script_type?: string;
}
export interface InternalOutput {
address_n: number[];
amount: string;
script_type?: string;
}
export interface SendMaxOutput {
@@ -262,7 +268,7 @@ export interface OpReturnOutput {
dataHex: string;
}
export type Output = RegularOutput | SendMaxOutput | OpReturnOutput;
export type Output = RegularOutput | InternalOutput | SendMaxOutput | OpReturnOutput;
export interface SignTransactionParams extends CommonParams {
inputs: Input[];