From 9c49e7642dbf9cfcbef122ff9d7785f3d885297d Mon Sep 17 00:00:00 2001 From: Totoro Date: Mon, 28 Feb 2022 20:15:54 +0300 Subject: [PATCH] ts: fix formatIdlData for option defined type (#1439) --- ts/src/coder/borsh/instruction.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ts/src/coder/borsh/instruction.ts b/ts/src/coder/borsh/instruction.ts index 224ef1937..bcb152b64 100644 --- a/ts/src/coder/borsh/instruction.ts +++ b/ts/src/coder/borsh/instruction.ts @@ -269,7 +269,8 @@ class InstructionFormatter { ? "null" : this.formatIdlData( { name: "", type: (idlField.type).option }, - data + data, + types ); } if (idlField.type.hasOwnProperty("defined")) {