소스 검색

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,