Skip to content

Cannot delegate to script drep #4210

Description

@mesudip

What

As reported by a user in discord

Hello. There seems to be a problem doing vote delegation to a script dRep from gov.tools
DRep id: drep1ywuk39acvmkzda9e8kfmy7fwf946jd5uaa4l696atlas66s68f0fl
The transaction build by gov.tools uses a key hash type instead of a script hash type, so the following error is returned on submit:
ConwayCertsFailure (CertFailure (DelegFailure (DelegateeDRepNotRegisteredDELEG (KeyHashObj (KeyHash {unKeyHash = "b96897b866ec26f4b93d93b2792e496ba9369cef6bfd175d5ffb0d6a"})))))
Issue reproducible on the gov.tools CIP30 bridge with both Vespr and Lace wallets

The reason for issue above is that, govtool hasn't considered checking the type of drep when creating the delegation transaction. This requires fixing in frontend

Todos

  • Support delegating to script dreps in govtool-frontend

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions