deploy.js
import { CodePromise, Abi, ContractPromise } from '@polkadot/api-contract'; import { ApiPromise, WsProvider, Keyring} from '@polkadot/api'; // import .contract file as json string import { json } from "./abi.js" import { mnemonicToMiniSecret, naclKeypairFromSeed, } from "@polkadot/util-crypto"; try { let address; // variable for storing the address of the deployed contract // API creation for connection to the chain const wsProvider = new WsProvider('wss://wss-testnet.5ire.network/'); const a...
deploy.js
import { CodePromise, Abi, ContractPromise } from '@polkadot/api-contract'; import { ApiPromise, WsProvider, Keyring} from '@polkadot/api'; // import .contract file as json string import { json } from "./abi.js" import { mnemonicToMiniSecret, naclKeypairFromSeed, } from "@polkadot/util-crypto"; try { let address; // variable for storing the address of the deployed contract // API creation for connection to the chain const wsProvider = new WsProvider('wss://wss-testnet.5ire.network/'); const a...
hahah
hahah means i love crypto