Commit 678b0b5d authored by Alex Beregszaszi's avatar Alex Beregszaszi

Support fallback function for contracts

parent f80e2fae
......@@ -171,6 +171,15 @@ UniversalDApp.prototype.getInstanceInterface = function (contract, address, $tar
}
$instance.append( $title );
// Add the fallback function
$instance.append(self.getCallButton({
abi: { constant: false, inputs:[], name: '(fallback)', outputs: [], type: 'function' },
encode: function(args) {
return '';
},
address: address
}));
$.each(abi, function(i, funABI) {
if (funABI.type != 'function') return;
// @todo getData cannot be used with overloaded functions
......
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