Skip to content

Instantly share code, notes, and snippets.

@thaarok
Created March 13, 2025 10:40
Show Gist options
  • Save thaarok/bc066f092b1021224b274cba4dfba1de to your computer and use it in GitHub Desktop.
Save thaarok/bc066f092b1021224b274cba4dfba1de to your computer and use it in GitHub Desktop.
// 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