Skip to content

Commit

Permalink
fix: view contract method was not working due to typo
Browse files Browse the repository at this point in the history
  • Loading branch information
1099511627776 committed Jan 15, 2019
1 parent c620f3b commit c64da15
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/TransactionBuilder.php
Expand Up @@ -327,10 +327,10 @@ public function triggerSmartContract($abi,


$inputs = array_map(function($item){ return $item['type']; },$func_abi['inputs']);
$signature = $func_abi['name'].'{';
$signature = $func_abi['name']."(";
if(count($inputs) > 0)
$signature .= implode(',',$inputs);
$signature .= '}';
$signature .= ')';

$eth_abi = new Ethabi([
'address' => new Address,
Expand Down

0 comments on commit c64da15

Please sign in to comment.