Skip to content

Commit

Permalink
Revert deployERC20Token
Browse files Browse the repository at this point in the history
  • Loading branch information
patitonar committed Jul 24, 2020
1 parent 6475b35 commit 46ff552
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions deploy/src/utils/deployERC20Token.js
Expand Up @@ -6,7 +6,7 @@ const { deployContract, privateKeyToAddress, sendRawTxForeign } = require('../de
const { web3Foreign, deploymentPrivateKey, FOREIGN_RPC_URL } = require('../web3')

const {
foreignContracts: { ERC677MultiBridgeToken }
foreignContracts: { ERC677BridgeToken }
} = require('../loadContracts')

const {
Expand All @@ -22,16 +22,16 @@ async function deployToken() {
let foreignNonce = await web3Foreign.eth.getTransactionCount(DEPLOYMENT_ACCOUNT_ADDRESS)
console.log('\n[Foreign] deploying ERC20 token')
const erc677token = await deployContract(
ERC677MultiBridgeToken,
[BRIDGEABLE_TOKEN_NAME, BRIDGEABLE_TOKEN_SYMBOL, BRIDGEABLE_TOKEN_DECIMALS, '42'],
ERC677BridgeToken,
[BRIDGEABLE_TOKEN_NAME, BRIDGEABLE_TOKEN_SYMBOL, BRIDGEABLE_TOKEN_DECIMALS],
{ from: DEPLOYMENT_ACCOUNT_ADDRESS, network: 'foreign', nonce: foreignNonce }
)
foreignNonce++
console.log('[Foreign] ERC20 Token: ', erc677token.options.address)

console.log('[Foreign] minting 900 tokens and transfer them to ', DEPLOYMENT_ACCOUNT_ADDRESS)
console.log('[Foreign] minting 100 tokens and transfer them to ', DEPLOYMENT_ACCOUNT_ADDRESS)
const mintData = await erc677token.methods
.mint(DEPLOYMENT_ACCOUNT_ADDRESS, '900000000000000000000')
.mint(DEPLOYMENT_ACCOUNT_ADDRESS, '100000000000000000000')
.encodeABI({ from: DEPLOYMENT_ACCOUNT_ADDRESS })
const txMint = await sendRawTxForeign({
data: mintData,
Expand Down

0 comments on commit 46ff552

Please sign in to comment.