- lowercase ethereum addresses in actions to avoid throwing ecliptic exceptions (bridge/issues/52)
commit96338320441150a4262638db408db9ea39b86714
authorChris Johnson <chris@cjohnson.io>
dateWed 3 Apr 2019, 15:03 (8 years ago)
parenta295fe5
src/bridge/views/AcceptTransfer.js+1−1
@@ -194,7 +194,7 @@ class AcceptTransfer extends React.Component {
194194 return Just(azimuth.ecliptic.transferFrom(
195195 validContracts,
196196 owner,
197− state.receivingAddress,
197+ state.receivingAddress.toLowerCase(),
198198 validPoint
199199 ))
200200 }
src/bridge/views/IssueChild.js+1−1
@@ -301,7 +301,7 @@ class IssueChild extends React.Component {
301301 const txn = ecliptic.spawn(
302302 validContracts,
303303 pointDec,
304− state.receivingAddress
304+ state.receivingAddress.toLowerCase()
305305 )
306306
307307 return Just(txn)
src/bridge/views/SetProxy.js+1−1
@@ -250,7 +250,7 @@ class SetProxy extends React.Component {
250250 const txArgs = [
251251 validContracts,
252252 validPoint,
253− state.proxyAddress
253+ state.proxyAddress.toLowerCase()
254254 ]
255255
256256 if (props.proxyType === PROXY_TYPE.TRANSFER_PROXY) {
src/bridge/views/Transfer.js+1−1
@@ -238,7 +238,7 @@ class Transfer extends React.Component {
238238 const txn = azimuth.ecliptic.setTransferProxy(
239239 validContracts,
240240 validPoint,
241− state.receivingAddress
241+ state.receivingAddress.toLowerCase()
242242 )
243243
244244 return Maybe.Just(txn)