Skip to content

Commit

Permalink
Convert pubkey hash to bytes32
Browse files Browse the repository at this point in the history
  • Loading branch information
asoong committed May 9, 2024
1 parent ccfbac7 commit 2acb8dc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion client/src/components/Deposit/revolut/NewPosition.tsx
Expand Up @@ -2,6 +2,7 @@ import React, { useEffect, useMemo, useState } from 'react';
import { ArrowLeft } from 'react-feather';
import styled from 'styled-components';
import Link from '@mui/material/Link';
import { ethers } from "ethers";
import { useContractWrite, usePrepareContractWrite, useWaitForTransaction } from 'wagmi';

import { Button } from "@components/common/Button";
Expand Down Expand Up @@ -86,7 +87,7 @@ export const NewPosition: React.FC<NewPositionProps> = ({
toBigInt(depositAmountInput.toString()),
toBigInt(receiveAmountInput.toString()),
NOTARY_VERIFICATION_SIGNING_KEY,
NOTARY_PUBKEY_HASH
ethers.utils.hexZeroPad(ethers.utils.hexlify(BigInt(NOTARY_PUBKEY_HASH)), 32)
],
enabled: shouldConfigureNewDepositWrite
});
Expand Down

0 comments on commit 2acb8dc

Please sign in to comment.