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,