-
Notifications
You must be signed in to change notification settings - Fork 23
tronbox migrating can not use the .at(contract address) #63
Comments
@sullof do you have any recommendation on how we can do .at function right now? |
Can you point me to some sample code to replicate the error? |
@sullof I've received a new error: (node:24235) UnhandledPromiseRejectionWarning: TypeError: code.replace is not a function |
Can you post some code that allows me to replicate the issue, please? |
same the error to the description from MioGreen |
I think the problem is that TronBox artifacts don't support |
when writing following migratation script in tronbox, there will happen to some error. but that can work well in truffle, please check it, thanks!
let a = await A.at('4174ca9d500f00601b8e1db69734c05e04b7b67be8');
the errors show that:
(node:3722) UnhandledPromiseRejectionWarning: TypeError: this.getContract is not a function
at TronWrap.tronWrap._getContract (/usr/local/Cellar/node/11.2.0/lib/node_modules/tronbox/build/webpack:/packages/tronwrap/index.js:135:1)
at /usr/local/Cellar/node/11.2.0/lib/node_modules/tronbox/build/webpack:/packages/truffle-contract/contract.js:413:1
at new Promise ()
at /usr/local/Cellar/node/11.2.0/lib/node_modules/tronbox/build/webpack:/packages/truffle-contract/contract.js:412:1
at new Promise ()
The text was updated successfully, but these errors were encountered: