瀏覽代碼

Fix error (#321)

guibescos 3 年之前
父節點
當前提交
3a56d0a8d9
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      third_party/pyth/multisig-wh-message-builder/src/util.ts

+ 1 - 1
third_party/pyth/multisig-wh-message-builder/src/util.ts

@@ -90,7 +90,7 @@ async function send(
       );
       // @ts-ignore -- TransportStatusError is a constructor Function, not a Class
       if (response.length !== 2)
-        throw new TransportStatusError(StatusCodes.INCORRECT_DATA);
+        throw TransportStatusError(StatusCodes.INCORRECT_DATA);
 
       p2 |= P2_EXTEND;
       offset += MAX_PAYLOAD;