|
15 | 15 |
|
16 | 16 | class Transaction
|
17 | 17 | {
|
18 |
| - const CHAIN_STEEM = ConnectorInterface::PLATFORM_STEEMIT; |
19 |
| - const CHAIN_GOLOS = ConnectorInterface::PLATFORM_GOLOS; |
20 |
| - const CHAIN_VIZ = ConnectorInterface::PLATFORM_VIZ; |
21 |
| - const CHAIN_ID = [ |
22 |
| - self::CHAIN_GOLOS => '782a3039b478c839e4cb0c941ff4eaeb7df40bdd68bd441afd444b9da763de12', |
23 |
| - self::CHAIN_STEEM => '0000000000000000000000000000000000000000000000000000000000000000', |
24 |
| - self::CHAIN_VIZ => '2040effda178d4fffff5eab7a915d4019879f5205cc5392e4bcced2b6edda0cd' |
| 18 | + const CHAIN_STEEM = ConnectorInterface::PLATFORM_STEEMIT; |
| 19 | + const CHAIN_GOLOS = ConnectorInterface::PLATFORM_GOLOS; |
| 20 | + const CHAIN_VIZ = ConnectorInterface::PLATFORM_VIZ; |
| 21 | + const CHAIN_WHALESHARES = ConnectorInterface::PLATFORM_WHALESHARES; |
| 22 | + const CHAIN_ID = [ |
| 23 | + self::CHAIN_GOLOS => '782a3039b478c839e4cb0c941ff4eaeb7df40bdd68bd441afd444b9da763de12', |
| 24 | + self::CHAIN_STEEM => '0000000000000000000000000000000000000000000000000000000000000000', |
| 25 | + self::CHAIN_VIZ => '2040effda178d4fffff5eab7a915d4019879f5205cc5392e4bcced2b6edda0cd', |
| 26 | + self::CHAIN_WHALESHARES => 'de999ada2ff7ed3d3d580381f229b40b5a0261aec48eb830e540080817b72866' |
25 | 27 | ];
|
26 | 28 |
|
27 | 29 | public static function getChainId($chainName)
|
@@ -194,7 +196,7 @@ protected static function signOperation($msg, $privateWif)
|
194 | 196 |
|
195 | 197 | $serializedSig = null;
|
196 | 198 | $recid = 0;
|
197 |
| - secp256k1_ecdsa_recoverable_signature_serialize_compact($context, $serializedSig, $recid,$signatureRec); |
| 199 | + secp256k1_ecdsa_recoverable_signature_serialize_compact($context, $serializedSig, $recid, $signatureRec); |
198 | 200 |
|
199 | 201 | $serializedSig = hex2bin(base_convert($recid + 4 + 27, 10, 16)) . $serializedSig;
|
200 | 202 | $length = strlen($serializedSig);
|
|
0 commit comments