From 4640ecf716b141331ef1e9a319d0cc5d40af09f1 Mon Sep 17 00:00:00 2001 From: npty Date: Mon, 19 Aug 2024 14:44:40 +0700 Subject: [PATCH] fix: `gateway` imports --- sui/gateway.js | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/sui/gateway.js b/sui/gateway.js index d46721de..f83a25fb 100644 --- a/sui/gateway.js +++ b/sui/gateway.js @@ -1,4 +1,3 @@ -const { saveConfig, printInfo } = require('../common/utils'); const { Command, Option } = require('commander'); const { Transaction } = require('@mysten/sui/transactions'); const { bcs } = require('@mysten/sui/bcs'); @@ -8,11 +7,20 @@ const { constants: { HashZero }, } = ethers; -const { loadConfig } = require('../common/utils'); -const { addBaseOptions } = require('./cli-utils'); -const { getWallet, printWalletInfo, getRawPrivateKey, broadcast } = require('./sign-utils'); -const { bytes32Struct, signersStruct, messageToSignStruct, messageStruct, proofStruct } = require('./types-utils'); -const { getSigners } = require('./deploy-gateway'); +const { saveConfig, printInfo, loadConfig } = require('../common/utils'); +const { + bytes32Struct, + signersStruct, + messageToSignStruct, + messageStruct, + proofStruct, + addBaseOptions, + getSigners, + getWallet, + printWalletInfo, + getRawPrivateKey, + broadcast, +} = require('./utils'); const secp256k1 = require('secp256k1'); const COMMAND_TYPE_APPROVE_MESSAGES = 0;