diff --git a/components/forms/DelegationForm.tsx b/components/forms/DelegationForm.tsx index 98e0773..6f2ff60 100644 --- a/components/forms/DelegationForm.tsx +++ b/components/forms/DelegationForm.tsx @@ -12,7 +12,7 @@ import StackableContainer from "../layout/StackableContainer"; interface Props { delegatorAddress: string; - accountOnChain: Account | null; + accountOnChain: Account; router: NextRouter; closeForm: () => void; } @@ -49,7 +49,6 @@ const DelegationForm = (props: Props) => { assert(gasPrice, "gasPrice missing"); const fee = calculateFee(gasLimit, gasPrice); const { accountOnChain } = props; - assert(accountOnChain, "accountOnChain missing"); assert(typeof accountOnChain.accountNumber === "number", "accountNumber missing"); return { accountNumber: accountOnChain.accountNumber, diff --git a/components/forms/ReDelegationForm.tsx b/components/forms/ReDelegationForm.tsx index add2781..ec2a98b 100644 --- a/components/forms/ReDelegationForm.tsx +++ b/components/forms/ReDelegationForm.tsx @@ -12,7 +12,7 @@ import StackableContainer from "../layout/StackableContainer"; interface Props { delegatorAddress: string; - accountOnChain: Account | null; + accountOnChain: Account; router: NextRouter; closeForm: () => void; } @@ -56,7 +56,6 @@ const ReDelegationForm = (props: Props) => { assert(gasPrice, "gasPrice missing"); const fee = calculateFee(gasLimit, gasPrice); const { accountOnChain } = props; - assert(accountOnChain, "accountOnChain missing"); assert(typeof accountOnChain.accountNumber === "number", "accountNumber missing"); return { accountNumber: accountOnChain.accountNumber, diff --git a/components/forms/RewardsForm.tsx b/components/forms/RewardsForm.tsx index e26dddb..f0f583e 100644 --- a/components/forms/RewardsForm.tsx +++ b/components/forms/RewardsForm.tsx @@ -11,7 +11,7 @@ import StackableContainer from "../layout/StackableContainer"; interface Props { delegatorAddress: string; - accountOnChain: Account | null; + accountOnChain: Account; router: NextRouter; closeForm: () => void; } @@ -39,7 +39,6 @@ const RewardsForm = (props: Props) => { assert(gasPrice, "gasPrice missing"); const fee = calculateFee(gasLimit, gasPrice); const { accountOnChain } = props; - assert(accountOnChain, "accountOnChain missing"); assert(typeof accountOnChain.accountNumber === "number", "accountNumber missing"); return { accountNumber: accountOnChain.accountNumber, diff --git a/components/forms/TransactionForm.tsx b/components/forms/TransactionForm.tsx index bdcc1db..47dfb82 100644 --- a/components/forms/TransactionForm.tsx +++ b/components/forms/TransactionForm.tsx @@ -12,7 +12,7 @@ import StackableContainer from "../layout/StackableContainer"; interface Props { address: string | null; - accountOnChain: Account | null; + accountOnChain: Account; router: NextRouter; closeForm: () => void; } @@ -51,7 +51,6 @@ const TransactionForm = (props: Props) => { assert(gasPrice, "gasPrice missing"); const fee = calculateFee(gasLimit, gasPrice); const { accountOnChain } = props; - assert(accountOnChain, "accountOnChain missing"); assert(typeof accountOnChain.accountNumber === "number", "accountNumber missing"); return { accountNumber: accountOnChain.accountNumber,