digitaldonkey / ethereum-php

PHP interface to Ethereum JSON-RPC API. Fully typed Web3 for PHP 7.X
http://ethereum-php.org
MIT License
489 stars 174 forks source link

Class 'Ethereum\DataType\Ethereum' not found #42

Open nasingyo opened 5 years ago

nasingyo commented 5 years ago

Symfony\Component\Debug\Exception\FatalThrowableError : Class 'Ethereum\DataType\Ethereum' not found

at vendor/digitaldonkey/ethereum-php/src/DataType/Filter.php:73 69| $return = []; 70| (!is_null($this->fromBlock)) ? $return['fromBlock'] = $this->fromBlock->hexVal() : NULL; 71| (!is_null($this->toBlock)) ? $return['toBlock'] = $this->toBlock->hexVal() : NULL; 72| (!is_null($this->address)) ? $return['address'] = $this->address->hexVal() : NULL;

73| (!is_null($this->topics)) ? $return['topics'] = Ethereum::valueArray($this->topics, 'EthD') : array(); 74| return $return; 75| } 76| }

apothan commented 4 years ago

It likely needs a line at the top: use Ethereum\Ethereum;