(Bool value)
| 229 | } |
| 230 | |
| 231 | static String encodeBool(Bool value) { |
| 232 | byte[] rawValue = new byte[MAX_BYTE_LENGTH]; |
| 233 | if (value.getValue()) { |
| 234 | rawValue[rawValue.length - 1] = 1; |
| 235 | } |
| 236 | return Numeric.toHexStringNoPrefix(rawValue); |
| 237 | } |
| 238 | |
| 239 | static String encodeBytes(BytesType bytesType) { |
| 240 | byte[] value = bytesType.getValue(); |