Skip to content

Commit

Permalink
Merge branch 'feat/DV-188/support-bridge-interactions' into staging
Browse files Browse the repository at this point in the history
  • Loading branch information
nicov-iov committed Aug 15, 2024
2 parents eac2920 + 7eea540 commit 3bf2ff7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/ContractInteraction.vue
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ import ToolTip from './General/Tooltip.vue'
import { PAGE_COLORS } from '@/config/pageColors'
import { mapGetters } from 'vuex'
import { bridge, ALLOWED_BRIDGE_METHODS, METHOD_TYPES, isAllowedMethod, removeNonFunctionFragmentsFromAbi } from '../config/entities/lib/bridge'
import { Indexed, isAddress } from 'ethers/lib/utils'
import { isAddress } from 'ethers/lib/utils'
export default {
name: 'contract-interaction',
Expand Down Expand Up @@ -379,7 +379,7 @@ export default {
const invalidArray = type.includes('[]') && (!input.startsWith('[') || !input.endsWith(']'))
const invalidTuple = type === 'tuple' && (!input.startsWith('[') || !input.endsWith(']')) // behaves like array
const invalidInteger = (type.startsWith('uint') || type.startsWith('int')) && isNaN(parseInt(input))
if (invalidAddress) {
throw new Error(`Invalid address provided: ${input}`)
} else if (invalidInteger) {
Expand All @@ -388,7 +388,7 @@ export default {
throw new Error(`Invalid boolean provided: ${input}`)
} else if (invalidArray) {
throw new Error(`Invalid array provided: ${input}`)
} else if (invalidTuple){
} else if (invalidTuple) {
throw new Error(`Invalid tuple provided: ${input}`)
}
})
Expand Down

0 comments on commit 3bf2ff7

Please sign in to comment.