@@ -99,7 +99,7 @@ contract ERC1155 is ERC165, IERC1155
99
99
* @param operator address to set the approval
100
100
* @param approved representing the status of the approval to be set
101
101
*/
102
- function setApprovalForAll (address operator , bool approved ) external override virtual {
102
+ function setApprovalForAll (address operator , bool approved ) public virtual override {
103
103
require (msg .sender != operator, "ERC1155: cannot set approval status for self " );
104
104
_operatorApprovals[msg .sender ][operator] = approved;
105
105
emit ApprovalForAll (msg .sender , operator, approved);
@@ -130,11 +130,11 @@ contract ERC1155 is ERC165, IERC1155
130
130
address to ,
131
131
uint256 id ,
132
132
uint256 value ,
133
- bytes calldata data
133
+ bytes memory data
134
134
)
135
- external
136
- override
135
+ public
137
136
virtual
137
+ override
138
138
{
139
139
require (to != address (0 ), "ERC1155: target address must be non-zero " );
140
140
require (
@@ -164,13 +164,13 @@ contract ERC1155 is ERC165, IERC1155
164
164
function safeBatchTransferFrom (
165
165
address from ,
166
166
address to ,
167
- uint256 [] calldata ids ,
168
- uint256 [] calldata values ,
169
- bytes calldata data
167
+ uint256 [] memory ids ,
168
+ uint256 [] memory values ,
169
+ bytes memory data
170
170
)
171
- external
172
- override
171
+ public
173
172
virtual
173
+ override
174
174
{
175
175
require (ids.length == values.length , "ERC1155: IDs and values must have same lengths " );
176
176
require (to != address (0 ), "ERC1155: target address must be non-zero " );
@@ -275,8 +275,7 @@ contract ERC1155 is ERC165, IERC1155
275
275
uint256 value ,
276
276
bytes memory data
277
277
)
278
- internal
279
- virtual
278
+ private
280
279
{
281
280
if (to.isContract ()) {
282
281
require (
@@ -295,8 +294,7 @@ contract ERC1155 is ERC165, IERC1155
295
294
uint256 [] memory values ,
296
295
bytes memory data
297
296
)
298
- internal
299
- virtual
297
+ private
300
298
{
301
299
if (to.isContract ()) {
302
300
require (
0 commit comments