Skip to content

Commit

Permalink
fix: use right method
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeday committed May 27, 2024
1 parent 941052f commit 5d248b9
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions packages/sdk/src/stake/stake.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
encodeFunctionData,
decodeEventLog,
getAbiItem,
toEventSignature,
toEventHash,
isAddressEqual,
} from 'viem';

Expand Down Expand Up @@ -44,10 +44,10 @@ import { LidoSDKModule } from '../common/class-primitives/sdk-module.js';

export class LidoSDKStake extends LidoSDKModule {
// Precomputed event signatures
private static TRANSFER_SIGNATURE = toEventSignature(
private static TRANSFER_SIGNATURE = toEventHash(
getAbiItem({ abi: StethEventsPartialAbi, name: 'Transfer' }),
);
private static TRANSFER_SHARES_SIGNATURE = toEventSignature(
private static TRANSFER_SHARES_SIGNATURE = toEventHash(
getAbiItem({ abi: StethEventsPartialAbi, name: 'TransferShares' }),
);
// Contracts
Expand Down
4 changes: 2 additions & 2 deletions packages/sdk/src/withdraw/claim/claim.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {
TransactionReceipt,
decodeEventLog,
getAbiItem,
toEventSignature,
toEventHash,
} from 'viem';

import { Logger, ErrorHandler } from '../../common/decorators/index.js';
Expand All @@ -26,7 +26,7 @@ import { PartialWithdrawalQueueEventsAbi } from '../abi/withdrawalQueue.js';

export class LidoSDKWithdrawClaim extends BusModule {
// Precomputed event signatures
private static CLAIM_SIGNATURE = toEventSignature(
private static CLAIM_SIGNATURE = toEventHash(
getAbiItem({
abi: PartialWithdrawalQueueEventsAbi,
name: 'WithdrawalClaimed',
Expand Down
4 changes: 2 additions & 2 deletions packages/sdk/src/withdraw/request/request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,14 @@ import {
encodeFunctionData,
formatEther,
getAbiItem,
toEventSignature,
toEventHash,
} from 'viem';
import { parseValue } from '../../common/utils/parse-value.js';
import { PartialWithdrawalQueueEventsAbi } from '../abi/withdrawalQueue.js';

export class LidoSDKWithdrawRequest extends BusModule {
// Precomputed event signatures
private static WITHDRAW_SIGNATURE = toEventSignature(
private static WITHDRAW_SIGNATURE = toEventHash(
getAbiItem({
abi: PartialWithdrawalQueueEventsAbi,
name: 'WithdrawalRequested',
Expand Down
4 changes: 2 additions & 2 deletions packages/sdk/src/wrap/wrap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
TransactionReceipt,
decodeEventLog,
getAbiItem,
toEventSignature,
toEventHash,
isAddressEqual,
} from 'viem';

Expand Down Expand Up @@ -40,7 +40,7 @@ import { ERROR_CODE, invariant } from '../common/utils/sdk-error.js';
import { LidoSDKModule } from '../common/class-primitives/sdk-module.js';

export class LidoSDKWrap extends LidoSDKModule {
private static TRANSFER_SIGNATURE = toEventSignature(
private static TRANSFER_SIGNATURE = toEventHash(
getAbiItem({ abi: PartialTransferEventAbi, name: 'Transfer' }),
);

Expand Down

0 comments on commit 5d248b9

Please sign in to comment.