Open Guitlle opened 2 years ago
Thanks for opening your first issue in the Aragon apps repo! Someone will circle back soon ⚡
I went to ..../aragon-apps/node_modules/hardhat/internal/hardhat-network/stack-traces/solidity-errors.js:108
and modified this function to this:
function sourceReferenceToSolidityCallsite(sourceReference) {
if (sourceReference === undefined) {
console.trace("DEBUG undefined source ref");
}
return new SolidityCallSite(sourceReference.file.sourceName, sourceReference.contract, sourceReference.function !== undefined
? sourceReference.function
: solidity_stack_trace_1.UNKNOWN_FUNCTION_NAME, sourceReference.line);
}
Got this trace repeated several times:
Trace: DEBUG undefined source ref
at sourceReferenceToSolidityCallsite (.../aragon-apps/node_modules/hardhat/internal/hardhat-network/stack-traces/solidity-errors.js:112:17)
at encodeStackTraceEntry (.../aragon-apps/node_modules/hardhat/internal/hardhat-network/stack-traces/solidity-errors.js:82:20)
at Function.Error.prepareStackTrace (.../aragon-apps/node_modules/hardhat/internal/hardhat-network/stack-traces/solidity-errors.js:47:30)
at maybeOverridePrepareStackTrace (internal/errors.js:127:29)
at prepareStackTrace (internal/errors.js:106:5)
at Object.get (.../aragon-apps/node_modules/@nomiclabs/buidler/internal/util/lazy.js:133:39)
at Web3HTTPProviderAdapter._sendJsonRpcRequest (.../aragon-apps/node_modules/@nomiclabs/buidler-web3/dist/web3-provider-adapter.js:41:49)
at .../aragon-apps/node_modules/@nomiclabs/buidler-web3/dist/web3-provider-adapter.js:17:51
at Callbackified (util.js:293:5)
at Web3HTTPProviderAdapter.send (.../aragon-apps/node_modules/@nomiclabs/buidler-web3/dist/web3-provider-adapter.js:17:80)
at RequestManager.send (.../aragon-apps/node_modules/@nomiclabs/truffle-contract/node_modules/web3-core-requestmanager/lib/index.js:162:23)
at sendRequest (.../aragon-apps/node_modules/@nomiclabs/truffle-contract/node_modules/web3-core-method/lib/index.js:615:42)
at Object.send [as getBlockByNumber] (.../aragon-apps/node_modules/@nomiclabs/truffle-contract/node_modules/web3-core-method/lib/index.js:642:13)
at .../aragon-apps/node_modules/@nomiclabs/truffle-contract/node_modules/web3-core-method/lib/index.js:265:63
I wanted to learn from this repo so I cloned it but I couldn't pass from running tests. It seems to work with node 14 ( I couldn't use version 12). I did
and I got this error:
Any thoughts? What am I doing wrong?