Fix send-lockups.js to use new lockAssets ABI
This commit is contained in:
parent
bf83461f6d
commit
a0b3b1bf0c
|
@ -32,7 +32,15 @@ module.exports = function(callback) {
|
||||||
await token.approve(bridge.address, "1000000000000000000");
|
await token.approve(bridge.address, "1000000000000000000");
|
||||||
|
|
||||||
while (true) {
|
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');
|
let block = await web3.eth.getBlock('latest');
|
||||||
console.log("block", block.number, "with txs", block.transactions, "and time", block.timestamp);
|
console.log("block", block.number, "with txs", block.transactions, "and time", block.timestamp);
|
||||||
await advanceBlock();
|
await advanceBlock();
|
||||||
|
|
Loading…
Reference in New Issue