Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP 7.0 compatibility #19

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/EthereumRawTx/Rlp/RlpDecoder.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class RlpDecoder
* byte with value 0x80 plus the length of the string followed by the
* string. The range of the first byte is thus [0x80, 0xb7].
*/
public const OFFSET_SHORT_STRING = 0x80;
const OFFSET_SHORT_STRING = 0x80;

/**
* [0xb7]
Expand All @@ -27,7 +27,7 @@ class RlpDecoder
* \xb9\x04\x00 followed by the string. The range of the first byte is thus
* [0xb8, 0xbf].
*/
public const OFFSET_LONG_STRING = 0xb7;
const OFFSET_LONG_STRING = 0xb7;

/**
* [0xc0]
Expand All @@ -37,7 +37,7 @@ class RlpDecoder
* of the RLP encodings of the items. The range of the first byte is thus
* [0xc0, 0xf7].
*/
public const OFFSET_SHORT_LIST = 0xc0;
const OFFSET_SHORT_LIST = 0xc0;

/**
* [0xf7]
Expand All @@ -47,7 +47,7 @@ class RlpDecoder
* followed by the concatenation of the RLP encodings of the items. The
* range of the first byte is thus [0xf8, 0xff].
*/
public const OFFSET_LONG_LIST = 0xf7;
const OFFSET_LONG_LIST = 0xf7;


public static function decode(Buffer $input)
Expand Down Expand Up @@ -165,4 +165,4 @@ private static function calcLength(int $lengthOfLength, array $data, int $pos):

return $length;
}
}
}