The Wayback Machine - https://web.archive.org/web/20210818100531/https://github.com/topics/solidity
Skip to content
#

solidity

Here are 5,387 public repositories matching this topic...

shrugs
shrugs commented Apr 12, 2018

🎉 Description

The ECDSA contract has a function toEthSignedMessage(bytes32), but we should have a function that works for any length of a bytes array:

function toEthSignedMessage(bytes s) pure internal returns (bytes32) {
  return keccak256(
    "\x19Ethereum Signed Message:\n",
    uintToBytes(s.length),
    s);
}

Where uintToBytes is implemented from an ideally

chainlink
0xfoobar
0xfoobar commented May 20, 2021

Description
Add a contract similar to Aave's AddressProvider or Uniswap's getPair() functionality.

Motivation
On-chain lookups of price oracles given the asset addresses.

Justification
String manipulation is difficult and expensive in Solidity, and you usually work with the token address, not its string name.

wolflo
wolflo commented Jul 28, 2021

Testing methods like evm_mine and evm_increaseTime expect integer parameters. Unlike other methods, they reject these parameters if they are not decimal-encoded.

To reproduce

npx hardhat --version -> 2.5.0

Run npx hardhat node and make the following rpc calls:

> curl -H "Content-Type: application/json" -X POST --data \
        '{"id":1337,"jsonrpc":"2.0","method":"evm
brownie

Improve this page

Add a description, image, and links to the solidity topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the solidity topic, visit your repo's landing page and select "manage topics."

Learn more