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
...@@ -169,7 +169,16 @@ UniversalDApp.prototype.getInstanceInterface = function (contract, address, $tar ...@@ -169,7 +169,16 @@ UniversalDApp.prototype.getInstanceInterface = function (contract, address, $tar
$events.append( $event ); $events.append( $event );
}) })
} }
$instance.append( $title ); $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) { $.each(abi, function(i, funABI) {
if (funABI.type != 'function') return; if (funABI.type != 'function') return;
......
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