Eoslime
Search…
deploy
You should have running nodeos
1
eoslime deploy
Copied!
Will execute your deployment scripts. Each of them should expose a "deploy" method
1
const TOKEN_WASM_PATH = './contracts/example/eosio.token.wasm';
2
const TOKEN_ABI_PATH = './contracts/example/eosio.token.abi';
3
4
let deploy = async function (eoslime, deployer) {
5
6
if (!deployer) {
7
deployer = await eoslime.Account.createRandom();
8
}
9
10
let tokenContract = await eoslime.Contract.deployOnAccount(TOKEN_WASM_PATH, TOKEN_ABI_PATH, deployer);
11
}
12
13
module.exports = deploy;
Copied!
Last modified 1yr ago
Copy link