mirror of
https://github.com/status-im/snt-gas-relay.git
synced 2025-01-29 23:55:45 +00:00
fix in log
This commit is contained in:
parent
62bf93868c
commit
a89d67f11a
@ -25,14 +25,13 @@ class TestTokenUI extends React.Component {
|
|||||||
|
|
||||||
var value = parseInt(this.state.amountToMint, 10);
|
var value = parseInt(this.state.amountToMint, 10);
|
||||||
|
|
||||||
// If web3.js 1.0 is being used
|
|
||||||
if (EmbarkJS.isNewWeb3()) {
|
if (EmbarkJS.isNewWeb3()) {
|
||||||
TestToken.methods.mint(value).send({from: web3.eth.defaultAccount});
|
TestToken.methods.mint(value).send({from: web3.eth.defaultAccount});
|
||||||
this._addToLog("TestToken.methods.mint("+value+").send({from: " + web3.eth.defaultAccount + "})");
|
|
||||||
} else {
|
} else {
|
||||||
TestToken.mint(value);
|
TestToken.mint(value);
|
||||||
this._addToLog("#blockchain", "TestToken.mint(" + value + ")");
|
this._addToLog("#blockchain", "TestToken.mint(" + value + ")");
|
||||||
}
|
}
|
||||||
|
this._addToLog(TestToken.options.address +".mint("+value+").send({from: " + web3.eth.defaultAccount + "})");
|
||||||
}
|
}
|
||||||
|
|
||||||
getBalance(e){
|
getBalance(e){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user