small fixes
This commit is contained in:
parent
e4e3cc36c5
commit
da41cb4091
|
@ -42,10 +42,10 @@ class MSWConfirmation extends React.Component {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|
||||||
const toSend = accountConfirmed ? mswInstance.methods.revokeConfirmation(transactionId) : mswInstance.methods.confirmTransaction(transactionId);
|
const toSend = accountConfirmed ? this.state.mswInstance.methods.revokeConfirmation(transactionId) : this.state.mswInstance.methods.confirmTransaction(transactionId);
|
||||||
const estimatedGas = await toSend.estimateGas({from: web3.eth.defaultAccount});
|
const estimatedGas = await toSend.estimateGas({from: this.state.account});
|
||||||
const receipt = await toSend.send({
|
const receipt = await toSend.send({
|
||||||
from: web3.eth.defaultAccount,
|
from: this.state.account,
|
||||||
gasLimit: estimatedGas
|
gasLimit: estimatedGas
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -45,8 +45,8 @@ class MSWAddOwner extends React.Component {
|
||||||
|
|
||||||
const toSend = this.state.mswInstance.methods.addOwner(input.owner);
|
const toSend = this.state.mswInstance.methods.addOwner(input.owner);
|
||||||
|
|
||||||
const MsSend = this.state.mswInstance.submitTransaction(
|
const MsSend = this.state.mswInstance.methods.submitTransaction(
|
||||||
this.state.mswInstance._address, 0, toSend.encodeABI
|
this.state.mswInstance._address, 0, toSend.encodeABI()
|
||||||
)
|
)
|
||||||
const estimatedGas = await MsSend.estimateGas({from: this.state.account});
|
const estimatedGas = await MsSend.estimateGas({from: this.state.account});
|
||||||
|
|
||||||
|
|
|
@ -30,8 +30,8 @@ class MSWOwnerTable extends React.Component {
|
||||||
try {
|
try {
|
||||||
|
|
||||||
const toSend = this.state.mswInstance.methods.removeOwner(account);
|
const toSend = this.state.mswInstance.methods.removeOwner(account);
|
||||||
const MsSend = this.state.mswInstance.submitTransaction(
|
const MsSend = this.state.mswInstance.methods.submitTransaction(
|
||||||
this.state.mswInstance._address, 0, toSend.encodeABI
|
this.state.mswInstance._address, 0, toSend.encodeABI()
|
||||||
)
|
)
|
||||||
const estimatedGas = await MsSend.estimateGas({from: this.state.account});
|
const estimatedGas = await MsSend.estimateGas({from: this.state.account});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue