Skip to content

Commit

Permalink
use Near denomination for demo (#325)
Browse files Browse the repository at this point in the history
  • Loading branch information
andy-haynes authored Feb 24, 2024
1 parent c9f9f52 commit a811221
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions apps/demos/src/WalletSelector/SignAndSendTransaction.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { signAndSendTransaction } from '@bos-web-engine/wallet-selector-plugin';
import { parseNearAmount } from '@near-js/utils';
import { useState } from 'react';

export default function () {
Expand All @@ -12,7 +13,7 @@ export default function () {
{
type: 'Transfer',
params: {
deposit: transferAmount,
deposit: parseNearAmount(transferAmount),
},
},
],
Expand All @@ -24,7 +25,7 @@ export default function () {
return (
<div>
<div>
<span>Amount to transfer</span>
<span> to transfer</span>
<input
type="text"
onChange={(e) => setTransferAmount(e.target.value)}
Expand Down

0 comments on commit a811221

Please sign in to comment.