Commit 7723cd9e authored by chriseth's avatar chriseth

Merge pull request #139 from axic/feature/fallback-func

Support fallback function for contracts
parents 9e148f0f 678b0b5d
......@@ -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