Additional work on the JS stuff to make it more similar to Solidity.
This commit is contained in:
@ -75,6 +75,15 @@ var contract = function (address, desc) {
|
||||
return result;
|
||||
};
|
||||
|
||||
result._options = {};
|
||||
['gas', 'gasPrice', 'value', 'from'].forEach(function(p) {
|
||||
result[p] = function (v) {
|
||||
result._options[p] = v;
|
||||
return result;
|
||||
};
|
||||
});
|
||||
|
||||
|
||||
desc.forEach(function (method) {
|
||||
|
||||
var displayName = abi.methodDisplayName(method.name);
|
||||
|
Reference in New Issue
Block a user