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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error[E0308]: arguments to this function are incorrect while building substrate #26

Closed
h4n0 opened this issue Jul 24, 2024 · 2 comments
Closed

Comments

@h4n0
Copy link

h4n0 commented Jul 24, 2024

Seems my substrate build was broken after cargo updated the ring-proof to 665f5f51.

error[E0308]: arguments to this function are incorrect
   --> /Users/han/.cargo/git/checkouts/ring-vrf-fa8519651343a7ee/4b09416/bandersnatch_vrfs/src/ring.rs:85:9
    |
85  |         ring::index(self.pcs_params.clone(), &self.piop_params, pks).0
    |         ^^^^^^^^^^^
    |
note: expected `&_`, found `URS<Bls12<Config>>`
   --> /Users/han/.cargo/git/checkouts/ring-vrf-fa8519651343a7ee/4b09416/bandersnatch_vrfs/src/ring.rs:85:21
    |

It took me some time to identify and locate this, and my workaround is to downgrade it to the previous version by doing:

cargo update -p ring@0.1.0 --precise 626c9598

Please take a look at this issue.

@davxy
Copy link
Collaborator

davxy commented Jul 24, 2024

This is not a ring-proof issue.
The issue is that bandersnatch_vrfs has this as a git dependency without specify a revision. I'm on it

@davxy davxy closed this as completed Jul 24, 2024
@davxy
Copy link
Collaborator

davxy commented Jul 24, 2024

Fixed by: w3f/ring-vrf#92 and w3f/ring-vrf#93

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

No branches or pull requests

2 participants