Fix send-lockups.js to use new lockAssets ABI

This commit is contained in:
Leopold Schabel 2020-10-08 17:44:33 +02:00
parent bf83461f6d
commit a0b3b1bf0c
1 changed files with 9 additions and 1 deletions

View File

@ -32,7 +32,15 @@ module.exports = function(callback) {
await token.approve(bridge.address, "1000000000000000000");
while (true) {
let ev = await bridge.lockAssets(token.address, "1000", "0x1230000000000000000000000000000000000000000000000000000000000000", 1 /* Solana */, 0);
let ev = await bridge.lockAssets(
token.address, /* asset address */
"1000000005", /* amount */
"0x1230000000000000000000000000000000000000000000000000000000000000", /* recipient */
1, /* target chain: solana */
0, /* nonce */
false /* refund dust? */
);
let block = await web3.eth.getBlock('latest');
console.log("block", block.number, "with txs", block.transactions, "and time", block.timestamp);
await advanceBlock();