trufflesuite/truffle

View on GitHub
packages/codec/lib/topic/read/index.ts

Summary

Maintainability
A
1 hr
Test Coverage
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];
}