diff --git a/src/components/MetaportProvider.tsx b/src/components/MetaportProvider.tsx index 64b2a08..95bd694 100644 --- a/src/components/MetaportProvider.tsx +++ b/src/components/MetaportProvider.tsx @@ -31,9 +31,9 @@ import { PaletteMode } from '@mui/material' import { injectedWallet, - coinbaseWallet, - metaMaskWallet, - enkryptWallet + // coinbaseWallet, + metaMaskWallet + // enkryptWallet } from '@rainbow-me/rainbowkit/wallets' import { MetaportConfig, ActionStateUpdate } from '../core/interfaces' @@ -74,9 +74,9 @@ export default function MetaportProvider(props: { ) const wallets = [ - enkryptWallet({ chains }), - injectedWallet({ chains }), - coinbaseWallet({ chains, appName: 'SKALE Metaport' }) + // enkryptWallet({ chains }), + injectedWallet({ chains }) + // coinbaseWallet({ chains, appName: 'SKALE Metaport' }) ] if (props.config.projectId) { diff --git a/src/core/actions/action.ts b/src/core/actions/action.ts index a3cef14..09723bb 100644 --- a/src/core/actions/action.ts +++ b/src/core/actions/action.ts @@ -162,7 +162,7 @@ export class Action { updateState(currentState: interfaces.ActionState, transactionHash?: string, timestamp?: number) { log(`actionStateUpd: ${this.constructor.name} - ${currentState} - ${this.token.keyname} \ - ${this.chainName1} -> ${this.chainName2}`) - const amountWei = toWei(this.amount, this.token.meta.decimals) + const amountWei = this.amount ? toWei(this.amount, this.token.meta.decimals) : 0n externalEvents.actionStateUpdated({ actionName: this.constructor.name, actionState: currentState,