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

utility.asDerivative processed wrong, address is used with wrong ss58 code. #30

Open
stepanLav opened this issue Oct 7, 2024 · 0 comments

Comments

@stepanLav
Copy link
Member

stepanLav commented Oct 7, 2024

On Polkadot has referenda 1191, where many accounts are voted via utility.asDerivative which result "voter" param in ss58=42

example:

curl --location 'https://subquery-governance-polkadot-prod.novasama-tech.org/' \
--header 'authority: subquery-governance-polkadot-prod.novasama-tech.org' \
--header 'accept: */*' \
--header 'accept-language: en-GB' \
--header 'content-type: application/json' \
--header 'sec-ch-ua: "Not(A:Brand";v="24", "Chromium";v="122"' \
--header 'sec-ch-ua-mobile: ?0' \
--header 'sec-ch-ua-platform: "macOS"' \
--header 'sec-fetch-dest: empty' \
--header 'sec-fetch-mode: cors' \
--header 'sec-fetch-site: cross-site' \
--header 'user-agent: Nova Spektr' \
--data '{"query":"query DelegateList($referendumId: String) {\n  castingVotings(\n    filter: {referendumId: {equalTo: $referendumId}, or: [{splitVote: {isNull: false}}, {splitAbstainVote: {isNull: false}}, {standardVote: {isNull: false}}]}\n  ) {\n    nodes {\n      referendumId\n      standardVote\n      splitVote\n      splitAbstainVote\n      voter\n      delegatorVotes {\n        nodes {\n          delegator\n          vote\n        }\n      }\n    }\n  }\n}","variables":{"referendumId":"1191"}}'

extrinsic:
https://polkadot.subscan.io/extrinsic/22788956-2

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

1 participant