Skip to content

Commit

Permalink
fix(lockbox): eth address isContract check when sending to lockbox
Browse files Browse the repository at this point in the history
  • Loading branch information
schnogz committed Sep 9, 2019
1 parent b7ac284 commit 0bab588
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -369,7 +369,9 @@ export default ({ api, coreSagas, networks }) => {
const checkIsContract = function * ({ payload }) {
try {
yield put(A.sendEthCheckIsContractLoading())
const { contract } = yield call(api.checkContract, payload)
// sending TO lockbox results in payload being an object
const ethAddr = propOr(payload, 'address', payload)
const { contract } = yield call(api.checkContract, ethAddr)
yield put(A.sendEthCheckIsContractSuccess(contract))
} catch (e) {
yield put(A.sendEthCheckIsContractFailure(e))
Expand Down

0 comments on commit 0bab588

Please sign in to comment.