Skip to content

Commit 0ecef0b

Browse files
andrewshab3Amxx
andauthored
docs: fix typo in ERC1155 example contract name (#6265)
Co-authored-by: Hadrien Croubois <[email protected]>
1 parent 419426a commit 0ecef0b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

contracts/mocks/docs/token/ERC1155/MyERC115HolderContract.sol renamed to contracts/mocks/docs/token/ERC1155/MyERC1155HolderContract.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
// contracts/MyERC115HolderContract.sol
1+
// contracts/MyERC1155HolderContract.sol
22
// SPDX-License-Identifier: MIT
33
pragma solidity ^0.8.20;
44

55
import {ERC1155Holder} from "../../../../token/ERC1155/utils/ERC1155Holder.sol";
66

7-
contract MyERC115HolderContract is ERC1155Holder {}
7+
contract MyERC1155HolderContract is ERC1155Holder {}

docs/modules/ROOT/pages/erc1155.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ In order for our contract to receive ERC-1155 tokens we can inherit from the con
112112

113113
[source,solidity]
114114
----
115-
include::api:example$token/ERC1155/MyERC115HolderContract.sol[]
115+
include::api:example$token/ERC1155/MyERC1155HolderContract.sol[]
116116
----
117117

118118
We can also implement more complex scenarios using the xref:api:token/ERC1155.adoc#IERC1155Receiver-onERC1155Received-address-address-uint256-uint256-bytes-[`onERC1155Received`] and xref:api:token/ERC1155.adoc#IERC1155Receiver-onERC1155BatchReceived-address-address-uint256---uint256---bytes-[`onERC1155BatchReceived`] functions.

0 commit comments

Comments
 (0)