Skip to content

Assertion failed: Cannot call unknown function compileJSON #18

@Mayur1496

Description

@Mayur1496

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions