Note that stream names in this repo do not contain a reference to the contract address, as they do in ERC1155. In the case of this connector, there are actually many different contracts (one optional factory and many deployed instances) - so it may be more difficult to detect if one changed. I've left the stream naming unchanged in this PR, just ported the slightly altered event stream logic.
Mostly a port of https://github.com/hyperledger/firefly-tokens-erc1155/pull/94
Note that stream names in this repo do not contain a reference to the contract address, as they do in ERC1155. In the case of this connector, there are actually many different contracts (one optional factory and many deployed instances) - so it may be more difficult to detect if one changed. I've left the stream naming unchanged in this PR, just ported the slightly altered event stream logic.