Skip to content

Commit

Permalink
test: console.log key first 5 chars
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasbrugneaux committed Oct 2, 2024
1 parent 5a0a741 commit c13041e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,6 @@ jobs:
- run: rm -rf node_modules/@celo/dev-utils/node_modules
- run: bun run build
- run: bun run test
env:
TEST_ACCOUNT_1: ${{ secrets.TEST_ACCOUNT_1 }}
TEST_ACCOUNT_2: ${{ secrets.TEST_ACCOUNT_2 }}
17 changes: 5 additions & 12 deletions src/tests/e2e.test.ts
Original file line number Diff line number Diff line change
@@ -1,29 +1,22 @@
import { testWithAnvilL1 } from "@celo/dev-utils/lib/anvil-test";
import { beforeAll, expect, test } from "bun:test";
import { CeloContract, CeloTransactionTypesPlugin } from "..";
import Web3, {
Address,
Contract,
DataFormat,
FMT_BYTES,
FMT_NUMBER,
} from "web3";
import Web3, { Address } from "web3";
import { stableTokenEurABI } from "@celo/abis";
import { hexToBytes, toWei } from "web3-utils";
import { CeloChains, TxTypeToPrefix } from "../utils";
import { waitForTransactionReceipt } from "web3-eth";
import { CIP64Transaction } from "../cip64";
import { CeloChains } from "../utils";

let stable: CeloContract<typeof stableTokenEurABI>;
let stableAddress: Address;

const web3 = new Web3(CeloChains.alfajores.rpcUrl);
console.log(process.env.TEST_ACCOUNT_1!.slice(5));
console.log(process.env.TEST_ACCOUNT_2!.slice(5));
const account = web3.eth.accounts.privateKeyToAccount(
process.env.TEST_ACCOUNT_1 as string
);
const account2 = web3.eth.accounts.privateKeyToAccount(
process.env.TEST_ACCOUNT_2 as string
);

web3.eth.accounts.wallet?.add(account);

beforeAll(async () => {
Expand Down

0 comments on commit c13041e

Please sign in to comment.