Skip to content

Commit

Permalink
fix: properly add approval screen for SetL1ValidatorWeight
Browse files Browse the repository at this point in the history
  • Loading branch information
meeh0w committed Nov 15, 2024
1 parent 1c2c513 commit 7da0c4f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/pages/ApproveAction/AvalancheSignTx.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ import { ApproveConvertSubnetToL1 } from './components/ApproveConvertSubnetToL1'
import { ApproveRegisterL1Validator } from './components/ApproveRegisterL1Validator';
import { ApproveIncreaseL1ValidatorBalance } from './components/ApproveIncreaseL1ValidatorBalance';
import { ApproveDisableL1Validator } from './components/ApproveDisableL1Validator';
import { ApproveSetL1ValidatorWeight } from './components/ApproveSetL1ValidatorWeight';

export function AvalancheSignTx() {
const requestId = useGetRequestId();
Expand Down Expand Up @@ -146,6 +147,8 @@ export function AvalancheSignTx() {
return <ApproveRegisterL1Validator tx={tx} avaxPrice={tokenPrice} />;
} else if (Avalanche.isDisableL1ValidatorTx(tx)) {
return <ApproveDisableL1Validator tx={tx} avaxPrice={tokenPrice} />;
} else if (Avalanche.isSetL1ValidatorWeightTx(tx)) {
return <ApproveSetL1ValidatorWeight tx={tx} avaxPrice={tokenPrice} />;
} else if (Avalanche.isIncreaseL1ValidatorBalance(tx)) {
return (
<ApproveIncreaseL1ValidatorBalance tx={tx} avaxPrice={tokenPrice} />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { TxDetailsRow } from '@src/components/common/approval/TxDetailsRow';
import { AvaxAmount } from './AvaxAmount';
import { Avalanche } from '@avalabs/core-wallets-sdk';

export function ApproveRegisterL1Validator({
export function ApproveSetL1ValidatorWeight({
tx,
avaxPrice,
}: {
Expand Down

0 comments on commit 7da0c4f

Please sign in to comment.