1
0
mirror of https://github.com/kremalicious/blog.git synced 2024-12-22 09:13:35 +01:00

fix blockies

This commit is contained in:
Matthias Kretschmann 2018-10-25 17:08:42 +02:00
parent fcb2fd1052
commit be9ed4c0e3
Signed by: m
GPG Key ID: 606EEEF3C479A91F

View File

@ -127,19 +127,14 @@ export default class Web3Donation extends PureComponent {
this.setState({
error: null,
accounts,
selectedAccount: accounts[0]
selectedAccount: accounts[0].toLowerCase()
})
})
}
handleButton = () => {
sendTransaction() {
const { web3 } = this
this.setState({
loading: true,
message: 'Waiting for your confirmation...'
})
web3.eth
.sendTransaction({
from: this.state.selectedAccount,
@ -158,6 +153,15 @@ export default class Web3Donation extends PureComponent {
})
}
handleButton = () => {
this.setState({
loading: true,
message: 'Waiting for your confirmation...'
})
this.sendTransaction()
}
onAmountChange = ({ target }) => {
this.setState({ amount: target.value })
}