This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { BN } from '@coral-xyz/anchor'; | |
import { PublicKey } from '@solana/web3.js'; | |
import { stringify, parse } from 'json-bigint'; | |
import fs from 'fs'; | |
const file = 'tests/accounts/token_account.json'; // Replace with the path to your JSON file | |
const account = fs.readFileSync(file, 'utf8'); | |
const newU64 = new BN(90000000000); // Replace with the desired u64 value |