isTxContext function

bool isTxContext(
  1. dynamic param
)

Implementation

bool isTxContext(SuiMoveNormalizedType param) {
	final struct = extractStructTag(param)?["Struct"];
  if (struct == null) return false;
	return (
		struct["address"] == '0x2' && struct["module"] == 'tx_context' && struct["name"] == 'TxContext'
	);
}