Update deployment script
This commit is contained in:
parent
a1b85a7cc1
commit
f5516a42fe
@ -7,7 +7,7 @@ require('dotenv').config({
|
|||||||
|
|
||||||
const {
|
const {
|
||||||
deployContract,
|
deployContract,
|
||||||
sendRawTx,
|
sendRawTxForeign,
|
||||||
privateKeyToAddress
|
privateKeyToAddress
|
||||||
} = require(`../${contractsPath}/deploy/src/deploymentUtils`)
|
} = require(`../${contractsPath}/deploy/src/deploymentUtils`)
|
||||||
const {
|
const {
|
||||||
@ -34,7 +34,7 @@ async function deployErc20() {
|
|||||||
const mintData = await poa20foreign.methods
|
const mintData = await poa20foreign.methods
|
||||||
.mint(user.address, '1000000000000000000')
|
.mint(user.address, '1000000000000000000')
|
||||||
.encodeABI({ from: DEPLOYMENT_ACCOUNT_ADDRESS })
|
.encodeABI({ from: DEPLOYMENT_ACCOUNT_ADDRESS })
|
||||||
await sendRawTx({
|
await sendRawTxForeign({
|
||||||
data: mintData,
|
data: mintData,
|
||||||
nonce: foreignNonce,
|
nonce: foreignNonce,
|
||||||
to: poa20foreign.options.address,
|
to: poa20foreign.options.address,
|
||||||
|
Loading…
Reference in New Issue
Block a user