Skip to content
#

solidity

Here are 4,706 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
yorickdowne
yorickdowne commented Mar 26, 2021

Description
The Web UI configuration page shows an entry ORACLE_CONTRACT_ADDRESS, this should now be OPERATOR_CONTRACT_ADDRESS.

The node ignores an env variable named ORACLE_CONTRACT_ADDRESS and correctly accepts OPERATOR_CONTRACT_ADDRESS, the value of which will be displayed as ORACLE_CONTRACT_ADDRESS in UI.

I believe the name of the environment variable was changed (recently?), just t

fvictorio
fvictorio commented May 6, 2021

Sometimes users don't realize there is a hardhat.config.js in a parent directory, and complain about not getting the initialization prompt. The best way to quickly find out if that's the case would be to have a way to print the detected config file. The easiest way to do this is to just log it in verbose mode. That way we can ask them to just do npx hardhat --verbose and see where the file is

montyly
montyly commented Mar 4, 2021

Create a tool for debugging hardhat project that

  • Add console.log at every function/modifier entry point, with the canonical name of the function, and the function parameters
  • Add console.log at every end of the function/modifier, with the canonical name of the function, and the return values

Potential flags

  • --only contract/function
  • --exclude contract/function
  • `--force-patc
brownie
PatrickAlphaC
PatrickAlphaC commented Jan 20, 2021

Overview

If I import a file that has a constructor and just that file, and try to compile and deploy, brownie ignores it.

Specification

Here's what a file that brownie would ignore looks like:

pragma solidity 0.4.24;

import "@chainlink/contracts/src/v0.4/Oracle.sol";

(I remapped chainlink contacts so I could use the @ syntax)

However, Oracle.sol has a constructo

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