Skip to content

Commit

Permalink
Add chainId
Browse files Browse the repository at this point in the history
  • Loading branch information
sc0Vu committed May 23, 2018
1 parent 8fea86d commit 4c0c760
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Transaction.php
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,8 @@ public function sha3(string $value)
*/
public function serialize()
{
$chainId = $this->offsetGet('chainId');

// sort tx data
if (ksort($this->txData) !== true) {
throw new RuntimeException('Cannot sort tx data by keys.');
Expand Down Expand Up @@ -329,7 +331,6 @@ public function getFromAddress()
$from = $this->offsetGet('from');

if ($from) {
var_dump(1);
return $from;
}
if (!isset($this->privateKey) || !($this->privateKey instanceof KeyPair)) {
Expand Down

0 comments on commit 4c0c760

Please sign in to comment.