Skip to content

Commit

Permalink
Merge pull request #221 from skalenetwork/unwrap-fix
Browse files Browse the repository at this point in the history
metaport#206 Fix tokens unwrap
  • Loading branch information
dmytrotkk authored Nov 6, 2023
2 parents 069e4a5 + 082770e commit 63acc82
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions src/components/MetaportProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion src/core/actions/action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 63acc82

Please sign in to comment.