Skip to content

Commit

Permalink
use solidity
Browse files Browse the repository at this point in the history
  • Loading branch information
snreynolds committed Aug 1, 2024
1 parent e8d8a7c commit 724e0c8
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/base/Notifier.sol
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,7 @@ contract Notifier {

bytes memory data = abi.encodeWithSelector(ISubscriber.notifyUnsubscribe.selector, tokenId, config);

//try _subscriber.notifyUnsubscribe{gas: subscriberGasLimit}(tokenId, config) {} catch {}
assembly ("memory-safe") {
pop(call(subscriberGasLimit, _subscriber, 0, add(data, 0x20), mload(data), 0, 0))
}
try _subscriber.notifyUnsubscribe{gas: subscriberGasLimit}(tokenId, config) {} catch {}

delete subscriber[tokenId];
emit Unsubscribed(tokenId, address(_subscriber));
Expand Down

0 comments on commit 724e0c8

Please sign in to comment.