Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile error of generated smart contract wrapper #40

Closed
gaspermerela opened this issue Dec 20, 2023 · 0 comments 路 Fixed by #41
Closed

Compile error of generated smart contract wrapper #40

gaspermerela opened this issue Dec 20, 2023 · 0 comments 路 Fixed by #41
Labels
type: bug Confirmed bugs or reports that are very likely to be bugs.

Comments

@gaspermerela
Copy link
Contributor

Module

ABI

What version of ethers-kt are you using?

0.1.0

What version of Java you are working on?

java 17.0.3 2022-04-19 LTS

Are you developing an Android app? If yes, please provide the OS version.

No response

馃摑 Description

When trying to generate smart contract wrapper for contract https://etherscan.io/address/0xC1735677a60884ABbCF72295E88d47764BeDa282#code the generated SC wrapper contains a compilation error on error implementation.

Steps to reproduce

Add ABI of smart contract linked above and run the build process.

Compilation error

Type mismatch: inferred type is Array<OffchainResolver.OffchainLookup.Companion> but Array<CustomErrorFactory> was expected
Type mismatch: inferred type is Array<OffchainResolver.OffchainLookup.Companion> but Array<CustomErrorFactory> was expected
Type mismatch: inferred type is Array<OffchainResolver.OffchainLookup.Companion> but Array<CustomErrorFactory<out TypeVariable(T)>> was expected

馃搼 Stack trace

No response

馃捇 Code to reproduce the bug

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Confirmed bugs or reports that are very likely to be bugs.
Projects
None yet
1 participant