Skip to content
This repository has been archived by the owner on May 9, 2024. It is now read-only.

Commit

Permalink
Debugging CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
spacesailor24 committed May 12, 2020
1 parent c60ac2b commit e4b4592
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion cli/cmd/erc20.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ const transferCmd = new Command("transfer")
.option('--recipient <address>', 'Destination recipient address', constants.relayerAddresses[4])
.option('--erc20Address <address>', 'Custom erc20 address', constants.ERC20_ADDRESS)
.option('--erc20HandlerAddress <address>', 'Custom erc20Handler contract', constants.ERC20_HANDLER_ADDRESS)
.option('--resourceID <resourceID>', 'Custom resourceID', constants.ERC20_RESOURCEID)
.option('--bridgeAddress <address>', 'Custom bridge address', constants.BRIDGE_ADDRESS)
.action(async function (args) {
setupParentArgs(args, args.parent.parent)
Expand Down Expand Up @@ -56,7 +57,7 @@ const transferCmd = new Command("transfer")

await bridgeInstance.deposit(
args.dest, // destination chain id
args.erc20HandlerAddress,
args.resourceID,
data,
);
console.log("[ERC20 Transfer] Created deposit to initiate transfer!");
Expand Down
3 changes: 2 additions & 1 deletion cli/cmd/erc721.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ const transferCmd = new Command("transfer")
.option(`--recipient <address>`, 'Destination recipient address', constants.relayerAddresses[4])
.option('--erc721Address <address>', 'Custom erc721 contract', constants.ERC721_ADDRESS)
.option('--erc721HandlerAddress <address>', 'Custom erc721 handler', constants.ERC721_HANDLER_ADDRESS)
.option('--resourceID <resourceID>', 'Custom resourceID', constants.ERC721_RESOURCEID)
.option('--bridgeAddress <address>', 'Custom bridge address', constants.BRIDGE_ADDRESS)

.action(async function (args) {
Expand Down Expand Up @@ -50,7 +51,7 @@ const transferCmd = new Command("transfer")
// Perform deposit
await bridgeInstance.deposit(
args.dest, // destination chain id
args.erc721HandlerAddress,
args.resourceID,
depositData);
console.log("[ERC721 Transfer] Created deposit to initiate transfer!")
})
Expand Down

0 comments on commit e4b4592

Please sign in to comment.