-
Notifications
You must be signed in to change notification settings - Fork 27
Open
Description
I'm trying to verify bytecode of a contract with solc version 0.5.7 but getting the following error.
You've chosen: mainnet
? Enter compiler version. (e.g. v0.4.10+commit.f0d539ae). v0.5.7+commit.6da8b019
? Enter the contract file name. (e.g. MultiSigWalletWithDailyLimit.sol) NXMaster
.sol
? Enter the contract address on blockchain. (e.g. 0x851b7f3ab81bd8df354f0d7640ef
cd7288553419) 0x1cc712e2a9f77149c2eb3a4051b6dd63d71dbc4f
? 0 for not optimized, 1 for optimized. 1
Current working directory: /home/suraj/Thesis/test/smart-contracts/contracts
File being compiled and compared: NXMaster.sol
==========================================
Compiler Version: v0.5.7+commit.6da8b019
Compiling in progress, dude, please be patient and give me 15~30 sec ...
Assertion failed: Cannot call unknown function compileJSON, make sure it is exported
Assertion failed: Cannot call unknown function compileJSON, make sure it is exported
soljson-v0.5.7+commit.6da8b019.js:30
(Module.asmGlobalArg,Module.asmLibraryArg,buffer);var __GLOBAL__I_000101=Module["__GLOBAL__I_000101"]=asm["__GLOBAL__I_000101"];var __GLOBAL__sub_I_ABIFunctions_cpp=Module["__GLOBAL__sub_I_ABIFunctions_cpp"]=asm["__GLOBAL__sub_I_ABIFunctions_cpp"];var __GLOBAL__sub_I_ABI_cpp=Module["__GLOBAL__sub_I_ABI_cpp"]=asm["__GLOBAL__sub_I_ABI_cpp"];var __GLOBAL__sub_I_ASTJsonConverter_cpp=Module["__GLOBAL__sub_I_ASTJsonConverter_cpp"]=asm["__GLOBAL__sub_I_ASTJsonConverter_cpp"];var __GLOBAL__sub_I_AST_cpp=Module["__GLOBAL__sub_I_AST_cpp"]=asm["__GLOBAL__sub_I_AST_cpp"];var __GLOBAL__sub_I_ArrayUtils_cpp=Module["__GLOBAL__sub_I_ArrayUtils_cpp"]=asm["__GLOBAL__sub_I_ArrayUtils_cpp"];var __GLOBAL__sub_I_AsmAnalysis_cpp=Module["__GLOBAL__sub_I_AsmAnalysis_cpp"]=asm["__GLOBAL__sub_I_AsmAnalysis_cpp"];var __GLOBAL__sub_I_CompilerContext_cpp=Module["__GLOBAL__sub_I_CompilerContext_cpp"]=asm["__GLOBAL__sub_I_CompilerContext_cpp"];var __GLOBAL__sub_I_CompilerStack_cpp=Module["__GLOBAL__sub
abort("Assertion failed: Cannot call unknown function compileJSON, make sure it is exported"). Build with -s ASSERTIONS=1 for more info.
Contract File Link
EtherScan Link for above contract
You can see that deployed version of contract is an exact match of the Contract file from NexusMutual/smart-contracts repository but still the verifier fails to verify
CC : @yxliang01
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels