Skip to content

Commit

Permalink
Update wallet pro
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben-Rey committed Aug 1, 2024
1 parent 53d69a7 commit 8c2f3ad
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 78 deletions.
75 changes: 6 additions & 69 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 3 additions & 9 deletions src/lib/massa-react/hooks/useWriteSmartContract.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,7 @@ import { useState } from 'react';
import { toast } from '../../../components';
import { logSmartContractEvents, showToast } from '../utils';
import Intl from '../i18n';
import {
Mas,
Operation,
OperationStatus,
Provider,
} from '@massalabs/massa-web3';
import { MINIMAL_FEE } from '../const';
import { Operation, OperationStatus, Provider } from '@massalabs/massa-web3';

interface ToasterMessage {
pending: string;
Expand All @@ -29,8 +23,8 @@ export function useWriteSmartContract(account: Provider, isMainnet = false) {
targetAddress: string,
parameter: Uint8Array,
messages: ToasterMessage,
coins = Mas.fromString('0'),
fee = MINIMAL_FEE,
coins = 0n,
fee?: bigint,
) {
if (isOpPending) {
throw new Error('Operation is already pending');
Expand Down

0 comments on commit 8c2f3ad

Please sign in to comment.