Commit c031bee9 authored by Alex Beregszaszi's avatar Alex Beregszaszi

Describe getConstructorInterface

parent 9cbf3277
...@@ -351,6 +351,7 @@ UniversalDApp.prototype.getInstanceInterface = function (contract, address, $tar ...@@ -351,6 +351,7 @@ UniversalDApp.prototype.getInstanceInterface = function (contract, address, $tar
return $createInterface; return $createInterface;
}; };
// either return the supplied constructor or a mockup (we assume everything can be instantiated)
UniversalDApp.prototype.getConstructorInterface = function (abi) { UniversalDApp.prototype.getConstructorInterface = function (abi) {
var funABI = { 'name': '', 'inputs': [], 'type': 'constructor', 'outputs': [] }; var funABI = { 'name': '', 'inputs': [], 'type': 'constructor', 'outputs': [] };
for (var i = 0; i < abi.length; i++) { for (var i = 0; i < abi.length; i++) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment