New answers tagged

0 votes

generate url in smart contract, based on block.chainid and address(this)

I believe it's easier to do that with a few utility conversion functions. My solution is: // SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.12; contract Test { function uint2str(uint _i)...
Mila A's user avatar
  • 638
1 vote
Accepted

Manipulate bytes with assembly

This should work for you: // SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.13; import "hardhat/console.sol"; contract Manipulation { // ...
Mila A's user avatar
  • 638

Top 50 recent answers are included