You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now the loaded contract is exposed as Contract. We should use the filename of the ABI file to infer the name.
This can be done with path.basename(abiPath, path.extname(abiPath)). Note that if the file is called Token.abi.json, then the variable will be named Token.abi and will not be available in the repl. The alternative is to do basename.split('.')[0],
The text was updated successfully, but these errors were encountered:
Right now the loaded contract is exposed as
Contract
. We should use the filename of the ABI file to infer the name.This can be done with
path.basename(abiPath, path.extname(abiPath))
. Note that if the file is calledToken.abi.json
, then the variable will be namedToken.abi
and will not be available in the repl. The alternative is to dobasename.split('.')[0]
,The text was updated successfully, but these errors were encountered: