mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-08 12:19:24 +00:00
Benchmarks gas usage Note the estimator needs to be updated as this is now variable-gas to the state.
14 lines
356 B
Solidity
14 lines
356 B
Solidity
// SPDX-License-Identifier: AGPL-3.0-only
|
|
pragma solidity ^0.8.26;
|
|
|
|
import "Router.sol";
|
|
|
|
// Wrap the Router with a contract which exposes the address
|
|
contract CreateAddress is Router {
|
|
constructor() Router(bytes32(uint256(1))) {}
|
|
|
|
function createAddressForSelf(uint256 nonce) external returns (address) {
|
|
return Router.createAddress(nonce);
|
|
}
|
|
}
|