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

(cherry picked from commit fa1dfbd113)
This commit is contained in:
Aniket
2018-10-01 18:09:57 +05:30
committed by Leo Arias
parent 598a0358fc
commit c25a1e366f
2 changed files with 14 additions and 4 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,
};