Skip to content

Inconsistency between soljson and solc-js APIs #5830

Closed
@axic

Description

@axic

With #4441 we have moved on to a newer version of Emscripten which changes the API of the generated file. solc-js was not prepared for this, the change was merged after 0.5.0: ethereum/solc-js@714162e

During today's standup we have discussed that it would be foolish to break compatibility between solc-js 0.5.x and solidty 0.5.x, e.g. every version of solc-js 0.5.x should be able to load any version of solidity 0.5.x.

The way to fix this is to add back the workaround into the generated soljson file:

Module.addFunction = Module.Runtime.addFunction;
Module.removeFunction = Module.Runtime.removeFunction;

This should be added before the module.exports=Module; line.

Metadata

Metadata

Assignees

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