packages/codec/lib/topic/read/index.ts
import type * as Evm from "@truffle/codec/evm";
import type * as Pointer from "@truffle/codec/pointer";
export function readTopic(
pointer: Pointer.EventTopicPointer,
state: Evm.EvmState
): Uint8Array {
//not bothering with error handling on this one as I don't expect errors
return state.eventtopics[pointer.topic];
}