Skip to content

Commit

Permalink
fix: __dirname now with ES
Browse files Browse the repository at this point in the history
  • Loading branch information
theblockstalk committed Sep 17, 2024
1 parent 7f14f7b commit 22f7768
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 4 additions & 0 deletions src/cli/msig/deployContract.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { Name, ABI, Serializer } from '@wharfkit/antelope';
import path from 'path';
import fs from 'fs';
import { getDeployableFilesFromDir } from '../bootstrap/deploy-contract';
import { fileURLToPath } from 'url';

export async function deployContract(args: { contractName: string }, options: StandardProposalOptions) {
const contractName = Name.from(args.contractName);
Expand All @@ -12,6 +13,9 @@ export async function deployContract(args: { contractName: string }, options: St
throw new Error('Contract name must be provided for deploy-contract proposal');
}

const __filenameNew = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filenameNew);

const contractInfo = {
account: contractName,
contractDir: path.join(__dirname, `../../Tonomy-Contracts/contracts/${contractName}`),
Expand Down
8 changes: 2 additions & 6 deletions test/export_test_keys.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,9 @@

export NODE_ENV=development

export TONOMY_OPS_PRIVATE_KEY=PVT_K1_24kG9VcMk3VkkgY4hh42X262AWV18YcPjBTd2Hox4YWoP8vRTU
export TONOMY_OPS_PRIVATE_KEY="PVT_K1_24kG9VcMk3VkkgY4hh42X262AWV18YcPjBTd2Hox4YWoP8vRTU"
export TONOMY_BOARD_PUBLIC_KEYS='{"keys":["PUB_K1_81aU18Y3RdyFf2WY4Wy7g7fvG9M9d7hmY4rhNFeXouYYPjExua","PUB_K1_5HWprCobEy8LiYUpfVmh8BdGDb8ANPc8rhBhtNqhvXnuxpyCaq","PUB_K1_5VLYVhqfe7oh8TW2i6Nw251wbpoZ4p15DV7udqDjiaKnryx9YU"]}'
export TONOMY_TEST_ACCOUNTS_PASSPHRASE='above day fever lemon piano sport'

# history -d -2
# history -d -2
# history -d -2

export TONOMY_OPS_PUBLIC_KEY="PUB_K1_6VTUaL8u2S8g6z2FawT7RuyjVdCYD8mGXGy5iVcRpRWy5umj7q"
export TONOMY_BOARD_PRIVATE_KEYS='{"keys":["PVT_K1_YUpMM1hPec78763ADBMK3gJ4N3yUFi3N8dKRQ3nyYcxqoDnmL","PVT_K1_2BvbQ8rQ55eTtUqaohjKZViUCupsDtbwhUsEmn3dTaZymAdXKp","PVT_K1_2KjVtHQaBXydUidyoEdjbLw44DZBaQbFdNB6GmQHPzoXQqsTyp"]}'
export SIGNING_KEY="PVT_K1_YUpMM1hPec78763ADBMK3gJ4N3yUFi3N8dKRQ3nyYcxqoDnmL"

0 comments on commit 22f7768

Please sign in to comment.