Created
March 13, 2025 10:40
-
-
Save thaarok/bc066f092b1021224b274cba4dfba1de to your computer and use it in GitHub Desktop.
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: GPL-3.0 | |
pragma solidity >=0.8.2 <0.9.0; | |
interface ContractsRegistrar { | |
function selfRegister(uint256) external; | |
} | |
contract MyContract { | |
uint256 number; | |
function doStuff(uint256 num) public { | |
number = num; | |
} | |
function doSelfReg() public { | |
// register on Blaze-testnet | |
ContractsRegistrar(0xFcb5774258B165a78e0F43dB91a20ebE25Aea4Fa).selfRegister(0x20); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment