IntersectMBO / IntersectMBO/govtool
Cannot delegate to script drep
- Dominant language
- HTML
- Stars
- 21
- Forks
- 29
- Avg merge
- 2d 22h
- Merged PRs (30d)
- 7
Description
### What
As reported by a user in [discord](https://discord.com/channels/1136727663583698984/1284163238635896863/1531208755138527362)
```
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
- [x] Support delegating to script dreps in govtool-frontend
Contributor guide
Assessment
This issue has not been assessed yet.