Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
require = require('esm')(module /*, options */) // use to handle es6 import/export
const AeSDK = require('@aeternity/aepp-sdk');
const Universal = AeSDK.Universal;
const ContractCompilerAPI = AeSDK.ContractCompilerAPI;
const config = require('forgae-config');
const {
printError
} = require('./fs-utils')
const {
spawn
} = require('promisify-child-process');
const getClient = async function (network, keypair = config.keypair) {
let client;
let internalUrl = network.url;
if (network.url.includes("localhost")) {
internalUrl = internalUrl + "/internal"