Skip to content

Instantly share code, notes, and snippets.

View HolyGrease's full-sized avatar
🇺🇦

Danylo Kyrieiev HolyGrease

🇺🇦
  • INC4
  • Ukraine, Lviv
View GitHub Profile
@HolyGrease
HolyGrease / fix-position.js
Created December 22, 2023 17:04
Fix position
const util = require('util')
const nearApi = require('near-api-js')
const { connect, Contract, keyStores } = nearApi;
async function main() {
const homedir = require("os").homedir();
const CREDENTIALS_DIR = ".near-credentials";
const credentialsPath = require("path").join(homedir, CREDENTIALS_DIR);
const myKeyStore = new keyStores.UnencryptedFileSystemKeyStore(credentialsPath);

Clear chain data

docker volume rm chain-data

Insert node keys

Babe