diff --git a/react/src/actions/actionCreators.js b/react/src/actions/actionCreators.js index c53a8be..56f1015 100644 --- a/react/src/actions/actionCreators.js +++ b/react/src/actions/actionCreators.js @@ -153,7 +153,7 @@ export function basiliskConnection(display) { export function syncingNativeModeState(display, json) { return { - type: SYNCING_FULL_MODE, + type: SYNCING_NATIVE_MODE, syncingNativeMode: display, progress: json, } @@ -161,7 +161,7 @@ export function syncingNativeModeState(display, json) { export function syncingFullModeState(display, json) { return { - type: SYNCING_NATIVE_MODE, + type: SYNCING_FULL_MODE, syncingFullMode: display, progress: json, } diff --git a/react/src/actions/actions/nativeNewAddress.js b/react/src/actions/actions/nativeNewAddress.js index 965fb9a..bec0473 100644 --- a/react/src/actions/actions/nativeNewAddress.js +++ b/react/src/actions/actions/nativeNewAddress.js @@ -2,7 +2,8 @@ import { translate } from '../../translate/translate'; import { triggerToaster, Config, - getPassthruAgent + getPassthruAgent, + getKMDAddressesNative } from '../actionCreators'; import { logGuiHttp, diff --git a/react/src/actions/actions/nativeSend.js b/react/src/actions/actions/nativeSend.js index 51bd2fd..38b64fd 100644 --- a/react/src/actions/actions/nativeSend.js +++ b/react/src/actions/actions/nativeSend.js @@ -16,7 +16,8 @@ export function sendNativeTx(coin, _payload) { let payload; let _apiMethod; - if (_payload.addressType === 'public') { + if (_payload.addressType === 'public' && + _payload.sendTo.length !== 95) { _apiMethod = 'sendtoaddress'; ajaxDataToHex = `["${_payload.sendTo}", ${Number(_payload.amount) - Number(_payload.fee)}]`; } else { diff --git a/react/src/components/addcoin/addcoin.js b/react/src/components/addcoin/addcoin.js index e3f54b0..75462e6 100644 --- a/react/src/components/addcoin/addcoin.js +++ b/react/src/components/addcoin/addcoin.js @@ -249,13 +249,14 @@ class AddCoin extends React.Component { const _coin = _item.selectedCoin || ''; items.push( -