Skip to content

Commit

Permalink
[#1951] fix delegation cert hash for script DReps
Browse files Browse the repository at this point in the history
  • Loading branch information
j-dyczka committed Oct 21, 2024
1 parent a57e43f commit 7ba23cc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion govtool/frontend/src/context/wallet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ import {
PoolVotingThresholds,
ProtocolVersion,
HardForkInitiationAction,
ScriptHash,
} from "@emurgo/cardano-serialization-lib-asmjs";
import { Buffer } from "buffer";
import { useNavigate } from "react-router-dom";
Expand Down Expand Up @@ -660,7 +661,7 @@ const CardanoProvider = (props: Props) => {
} else if (target.includes("drep1")) {
targetDRep = DRep.new_key_hash(Ed25519KeyHash.from_bech32(target));
} else if (target.includes("drep_script1")) {
targetDRep = DRep.new_script_hash(Ed25519KeyHash.from_bech32(target));
targetDRep = DRep.new_script_hash(ScriptHash.from_hex(target));
} else {
targetDRep = DRep.new_key_hash(Ed25519KeyHash.from_hex(target));
}
Expand Down

0 comments on commit 7ba23cc

Please sign in to comment.