Skip to content

Commit

Permalink
Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjimmutable committed Oct 23, 2023
1 parent 04eb50f commit 8a16796
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions axelar-local-dev/examples/evm/call-contract/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ const ExecutableSample = rootRequire('./artifacts/examples/evm/call-contract/Exe
async function deploy(chain, wallet) {
console.log(`Deploying ExecutableSample for ${chain.name}.`);
chain.contract = await deployContract(wallet, ExecutableSample, [chain.gateway, chain.gasService]);
// chain.contract = "EXECUTABLE_ADDRESS"
chain.wallet = wallet;
console.log(`Deployed ExecutableSample for ${chain.name} at ${chain.contract.address}.`);
}
Expand All @@ -23,10 +22,8 @@ async function execute(chains, wallet, options) {
const message = args[2] || `Hello ${destination.name} from ${source.name}, it is ${new Date().toLocaleTimeString()}.`;

async function logValue() {
//console.log(destination.contract2)
console.log(destination.name)
console.log(`value at ${destination.name} is "${await destination.contract2.rootTokenToChildToken("0x38Aa1Cb12E5263eC0c6e9febC25B01116D346CD4")}"`);
//console.log(await destination.contract2.rootTokenToChildToken("0x38Aa1Cb12E5263eC0c6e9febC25B01116D346CD4"));
}

console.log('--- Initially ---');
Expand All @@ -36,16 +33,10 @@ async function execute(chains, wallet, options) {

console.log('fee',fee);

// const tx = await source.contract.setRemoteValue(destination.name, destination.contract.address, message, {
// value: fee,
// });
console.log("SOURCE CONTRACT: ", source.contract.address)
console.log("Calling mapToken");
const tx = await source.contract.deposit("0x38C50773CdA2E79a9217f40d63A8faF8fb0D4d73", "9999", {value: fee})
// const tx = await source.contract.mapToken("0x38Aa1Cb12E5263eC0c6e9febC25B01116D346CD4", {value: fee})
const receipt = await tx.wait();
// console.log(tx);
console.log(receipt);
// const tx = await source.contract.deposit("0x38C50773CdA2E79a9217f40d63A8faF8fb0D4d73", "9999", {value: fee})
const tx = await source.contract.mapToken("0x38Aa1Cb12E5263eC0c6e9febC25B01116D346CD4", {value: fee})
await tx.wait();

const util = require('util')

Expand Down

0 comments on commit 8a16796

Please sign in to comment.