Skip to content

Commit 91b6178

Browse files
committed
Fix(docs): correcting some issues on the last pr
1 parent ed746f7 commit 91b6178

File tree

1 file changed

+3
-3
lines changed
  • apps/portal/src/app/contracts/modular-contracts/get-started/create-core-contract

1 file changed

+3
-3
lines changed

apps/portal/src/app/contracts/modular-contracts/get-started/create-core-contract/page.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ Implement the `getSupportedCallbackFunctions` function. The Core contract is abs
8989
import {Core} from "@thirdweb-dev/src/Core.sol";
9090
9191
contract CounterCore is Core {
92-
int256 public count;
92+
uint256 public count;
9393
9494
constructor(address owner) {
9595
_initializeOwner(owner);
@@ -112,7 +112,7 @@ Implement the `getSupportedCallbackFunctions` function. The Core contract is abs
112112
</Step>
113113

114114
<Step title="Add a Callback Function">
115-
Introduce the `_beforeIncrement` function to use the `beforeIncrement` callback from a module, to achieve this we are going to create a new interface.
115+
Introduce the `_beforeIncrement` function to use the `beforeIncrement` callback from a module to achieve this, we'll introduce the interface `BeforeIncrementCallback`
116116

117117
> **Note**
118118
> Callback functions are hook-like functionalities that can be used before or after the main functionality of a core contract.
@@ -219,7 +219,7 @@ contract CounterCore is Core {
219219
function supportsInterface(
220220
bytes4 interfaceId
221221
) public view override returns (bool) {
222-
interfaceId == 0x00000001 || super.supportsInterface(interfaceId);
222+
return interfaceId == 0x00000001 || super.supportsInterface(interfaceId);
223223
}
224224
}
225225

0 commit comments

Comments
 (0)