ditto-lab / ditto

NFT Future protocol
MIT License
60 stars 3 forks source link

split onTokenReceived #78

Closed 0xbok closed 1 year ago

0xbok commented 2 years ago

Another gas optimization PR: onTokenReceived takes a parameter isERC1155 to transfer NFT. We use if/else to transfer 1155 vs 721. If we do this transfer in the receiver function this saves gas.

calvbore commented 1 year ago

@0xbok looks good