This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SPDX-License-Identifier: MIT | |
pragma solidity ^0.8.19; | |
import "./PuzzleBox.sol"; | |
// One word, or 32 bytes | |
uint256 constant ONE_WORD = 0x20; | |
// We lay out calldata in memory starting at this offset, immediately after the | |
// 4 byte function selector |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"constraints" | |
"fmt" | |
) | |
func main() { | |
fmt.Println(Sum(1, 2, 3, 4)) | |
fmt.Println(Sum("1", "2", "3")) |