Fix #1358 Test helper to send funds (#1367)

* signing prefix added

* Minor improvement

* Tests changed

* Successfully tested

* Minor improvements

* Minor improvements

* Revert "Dangling commas are now required. (#1359)"

This reverts commit a6889776f4.

* fixes #1358

* linting done

* suggested changes
This commit is contained in:
Aniket
2018-10-01 18:09:57 +05:30
committed by Nicolás Venturo
parent a6889776f4
commit fa1dfbd113
3 changed files with 17 additions and 6 deletions

View File

@ -15,7 +15,16 @@ function sendTransaction (target, name, argsTypes, argsValues, opts) {
return target.sendTransaction(Object.assign({ data: encodedData }, opts));
}
function sendEther (from, to, value) {
web3.eth.sendTransaction({
from: from,
to: to,
value: value,
gasPrice: 0,
});
}
module.exports = {
findMethod,
sendTransaction,
sendEther,
};