Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Commit

Permalink
fix funding
Browse files Browse the repository at this point in the history
  • Loading branch information
statictype committed Jun 19, 2023
1 parent bd92117 commit 278cc86
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion www/src/components/wizards/multisig/Fund.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { zodResolver } from "@hookform/resolvers/zod/dist/zod.js"
import { signature } from "capi/patterns/signature/polkadot"
import { Controller, useForm } from "react-hook-form"
import { defaultSender } from "../../../signals/accounts.js"
import { toBalance } from "../../../util/balance.js"
import { toMultiAddressIdRune } from "../../../util/capi-helpers.js"
import { filterEvents, handleException } from "../../../util/events.js"
import { BalanceInput } from "../../BalanceInput.js"
Expand Down Expand Up @@ -35,7 +36,7 @@ export function MultisigFund() {

const fundStashCall = westend.Balances
.transfer({
value: BigInt(fundingAmount), // TODO properly scale the amount
value: toBalance(fundingAmount),
dest: toMultiAddressIdRune(stash),
})
.signed(signature({ sender }))
Expand Down

0 comments on commit 278cc86

Please sign in to comment.