Closed 0xbok closed 1 year 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.
onTokenReceived
isERC1155
@0xbok looks good
Another gas optimization PR:
onTokenReceived
takes a parameterisERC1155
to transfer NFT. We use if/else to transfer 1155 vs 721. If we do this transfer in the receiver function this saves gas.