Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
onSubmit(e) {
e.preventDefault()
const collector = collect()
const address = state.view.address_input
const asset = createAsset(this.Coin.type, this.Coin.symbol, address)
setHref(routes.asset({ asset_id: getAssetId(asset) }))
// setHref(routes.home())
collector.emit()
}
onSubmit(e) {
e.preventDefault()
const collector = collect()
const address = state.view.address
const asset = createAsset(BTC.type, BTC.symbol, address)
setHref(routes.asset(getCoinId(asset)))
collector.emit()
}
onSubmit(e) {
e.preventDefault()
const collector = collect()
const ethereum_asset_id = state.view.ethereum_asset_id
const ethereum_asset = state.assets[ethereum_asset_id]
const address = ethereum_asset.address
const asset = createAsset(this.Coin.type, this.Coin.symbol, address)
const asset_id = getCoinId({ symbol: this.Coin.symbol, address })
copyPrivateKey(ethereum_asset_id, asset_id)
setHref(routes.asset(asset_id))
collector.emit()
}
onSubmit(e) {
e.preventDefault()
if (this.isFormValid) {
const collector = collect()
const address = state.view.address
const asset = createAsset(ETH.type, ETH.symbol, address)
setPrivateKey(
getCoinId({ symbol: ETH.symbol, address }),
state.view.private_key,
state.view.password
)
setHref(routes.asset(getCoinId(asset)))
collector.emit()
}
}
onSubmit(e) {
e.preventDefault()
if (this.isFormValid) {
const collector = collect()
const address = state.view.address
const asset = createAsset(BTC.type, BTC.symbol, address)
setPrivateKey(
getCoinId({ symbol: BTC.symbol, address }),
state.view.private_key,
state.view.password
)
setHref(routes.asset(getCoinId(asset)))
collector.emit()
}
}
onChangeTypeImport(e) {
const collector = collect()
state.view.type_import = e.target.value
collector.emit()
}
onChangeTypeImport(e) {
const collector = collect()
state.view.type_import = e.target.value
collector.emit()
}
onChangeTypeImport(e) {
const collector = collect()
state.view.type_import = e.target.value
collector.emit()
}
onChangeOldpassword(e) {
const collector = collect()
state.view.isInvalidOldpassword = false
state.view.oldpassword = e.target.value
collector.emit()
}
onChangePassword(e) {
onChangeTypeImport(e) {
const collector = collect()
state.view.type_import = e.target.value
collector.emit()
}