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

solidity

Here are 5,577 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

cameel
cameel commented Sep 9, 2021

Currently validation errors are reported as if they were internal compiler errors which makes it look like as if a bug in the compiler was triggered. A nicely formatted message should be printed instead.

For example the error caused by using --testpath with an empty value looks like this:

soltest -- --testpath
Test setup error: Throw location unknown (consider using BOOST
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