Skip to content

Commit

Permalink
fix decode
Browse files Browse the repository at this point in the history
  • Loading branch information
grkamil committed May 9, 2021
1 parent 00f2308 commit 87e19e8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Minter/Library/Helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,8 @@ public static function hex2rlp(string $data): array
$decoded = $rlp->decode('0x' . $data);

return array_map(function ($v) use ($rlp) {
return $rlp->decode('0x' . $v);
$data = $rlp->decode('0x' . $v);
return is_array($data) ? $data : (string) $v;
}, $decoded);
}

Expand Down

0 comments on commit 87e19e8

Please sign in to comment.