Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Remove web3 from Signer, bring in parity.js API #2604

Merged
merged 10 commits into from
Oct 13, 2016
Prev Previous commit
Next Next commit
no need to toChecksumAddress - api takes care of it
  • Loading branch information
jacogr committed Oct 13, 2016

Verified

This commit was signed with the committer’s verified signature.
stmcginnis Sean McGinnis
commit 30393b702491f3b6c594bbcba425a7df0aecc292
Original file line number Diff line number Diff line change
@@ -46,11 +46,8 @@ export default class SignRequestWeb3 extends Component {
}

render () {
const { api } = this.context;
const { balance, chain } = this.state;
const { onConfirm, onReject, isSending, isFinished, hash, className, id, status } = this.props;

const address = api.util.toChecksumAddress(this.props.address);
const { address, onConfirm, onReject, isSending, isFinished, hash, className, id, status } = this.props;

return (
<SignRequest
Original file line number Diff line number Diff line change
@@ -39,11 +39,7 @@ export default class TransactionFinishedWeb3 extends Component {

render () {
const { fromBalance, toBalance, chain } = this.state;
const { api } = this.context;

let { from, to } = this.props;
from = api.util.toChecksumAddress(from);
to = to ? api.util.toChecksumAddress(to) : to;
const { from, to } = this.props;

return (
<TransactionFinished
Original file line number Diff line number Diff line change
@@ -51,12 +51,8 @@ export default class TransactionPendingWeb3 extends Component {
}

render () {
const { api } = this.context;
const { fromBalance, toBalance, chain } = this.state;
let { from, to, date } = this.props;

from = api.util.toChecksumAddress(from);
to = to ? api.util.toChecksumAddress(to) : to;
const { from, to, date } = this.props;

return (
<TransactionPending