Skip to content

Conversation

@torreyatcitty
Copy link
Contributor

Users to wish to use solc will now need to pass in the solc.compile() function depending on how they use the API.

… to allow users to pass in solc.compile function.
query<T>(q: string): Query<T, []> {
let registrations = this.sources.map((source) => {
let iface = JSON.stringify(source.iface.format(FormatTypes.full));
let iface = JSON.stringify(source.iface.format(FormatTypes.full));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this indent be here?

"@ethersproject/contracts": "^5.7.0",
"@ethersproject/providers": "^5.7.2"
"@ethersproject/providers": "^5.7.2",
"solc": "^0.8.21"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This feels like it should be even less here?

throw new Error(`solc.js yarn dependency not found. Please build with optional dependencies included`);
function solcCompile(
input: SolcInput,
compileFn: ((input: string) => string) | undefined
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I really think this should be async, which would be a way more common way to use it (e.g. via a WebWorker)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants