Skip to content

Commit

Permalink
Change abi to TS json
Browse files Browse the repository at this point in the history
  • Loading branch information
amanusk committed Mar 24, 2024
1 parent 921a33a commit b941f39
Show file tree
Hide file tree
Showing 6 changed files with 280 additions and 280 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Basic StarkNet-JS wallet
# starknet-cli-wallet

I wouldn't trust any software/blockchain/dapp I cannot run from a command line.
This is a basic tool to run basic commands on a StarkNet contract, from a terminal.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "starknet-cli-wallet",
"version": "0.2.0",
"version": "0.2.1",
"description": "Example of a starknet wallet implemented with starknetjs",
"main": "index.js",
"bin": {
Expand Down
4 changes: 2 additions & 2 deletions src/StarkNetWallet.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import fs from "fs";
import { generateRandomStarkPrivateKey, prettyPrintFee } from "./util";
import { ERC20_abi } from "./interfaces/ERC20_abi";
import { ethers, Wallet } from "ethers";
import {
Contract,
Expand Down Expand Up @@ -104,8 +105,7 @@ export class StarkNetWallet {
}

static getERC20Contract(tokenAddress: string, provider: ProviderInterface): Contract {
const erc20ABI = json.parse(fs.readFileSync("./src/interfaces/ERC20_abi.json").toString("ascii"));
const erc20 = new Contract(erc20ABI, tokenAddress, provider);
const erc20 = new Contract(ERC20_abi, tokenAddress, provider);
return erc20;
}

Expand Down
274 changes: 0 additions & 274 deletions src/interfaces/ERC20_abi.json

This file was deleted.

Loading

0 comments on commit b941f39

Please sign in to comment.