(hex: string)
| 110 | } |
| 111 | |
| 112 | function bytesFromHex(hex: string): Bytes { |
| 113 | if (!hex.startsWith('0x')) { |
| 114 | hex = toHex(hex); |
| 115 | } |
| 116 | return Bytes.fromHexString(hex) as Bytes; |
| 117 | } |
| 118 | |
| 119 | function hexToI32(hex: string): i32 { |
| 120 | if (hex.startsWith('0x')) { |
no test coverage detected