Skip to content

Commit 4150839

Browse files
committed
refactor: reuse helper deriveSeedHash
Signed-off-by: Pablo Maldonado <[email protected]>
1 parent be4401e commit 4150839

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Diff for: src/svm/web3-v1/helpers.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -281,9 +281,8 @@ export function getFillRelayDelegateSeedHash(
281281
repaymentChainId,
282282
repaymentAddress: repaymentAddress.toBuffer(),
283283
});
284-
const serialized = serialize(fillDelegateSeedSchema, ds);
285284

286-
return Buffer.from(ethers.utils.keccak256(serialized).slice(2), "hex");
285+
return deriveSeedHash(fillDelegateSeedSchema, ds);
287286
}
288287

289288
/**

0 commit comments

Comments
 (0)