Skip to content

Commit 5c4c570

Browse files
committed
fix: small typo in the getting started docs (#4954)
## Problem solved Short description of the bug fixed or feature added <!-- start pr-codex --> --- ## PR-Codex overview This PR focuses on modifying the initialization of `callbackFunctions` and `fallbackFunctions` in the `create-module-contract` function to use dynamic arrays instead of single instances. ### Detailed summary - Changed `config.callbackFunctions` from a single `CallbackFunction` to a dynamic array of `CallbackFunction` with size 1. - Changed `config.fallbackFunctions` from a single `FallbackFunction` to a dynamic array of `FallbackFunction` with size 2. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->
1 parent ea36c54 commit 5c4c570

File tree

1 file changed

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

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -363,8 +363,8 @@ export const metadata = createMetadata({
363363
override
364364
returns (ModuleConfig memory config)
365365
{
366-
config.callbackFunctions = new CallbackFunction ;
367-
config.fallbackFunctions = new FallbackFunction ;
366+
config.callbackFunctions = new CallbackFunction[](1);
367+
config.fallbackFunctions = new FallbackFunction[](2);
368368
369369
config.callbackFunctions[0] = CallbackFunction(
370370
this.beforeIncrement.selector

0 commit comments

Comments
 (0)