瀏覽代碼

Type error

Guillermo Bescos Alapont 2 年之前
父節點
當前提交
013e30dd54
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      xc-admin/packages/xc-admin-common/src/propose.ts

+ 3 - 1
xc-admin/packages/xc-admin-common/src/propose.ts

@@ -152,7 +152,9 @@ export async function wrapAsRemoteInstruction(
     provider
   );
 
-  const buffer = new ExecutePostedVaa("pythnet", [instruction]);
+  const buffer: Buffer = new ExecutePostedVaa("pythnet", [
+    instruction,
+  ]).encode();
 
   const accounts = getPostMessageAccounts(
     wormholeAddress,