@vechain/sdk-network
Version:
This module serves as the standard interface connecting decentralized applications (dApps) and users to the VeChainThor blockchain
18 lines (14 loc) • 393 B
text/typescript
import { Keccak256, Txt } from '@vechain/sdk-core';
/**
* The selector for the error event.
*/
const ERROR_SELECTOR = Keccak256.of(Txt.of('Error(string)').bytes)
.toString()
.slice(0, 10);
/**
* The selector for the panic event.
*/
const PANIC_SELECTOR = Keccak256.of(Txt.of('Panic(uint256)').bytes)
.toString()
.slice(0, 10);
export { ERROR_SELECTOR, PANIC_SELECTOR };