Nick Edgar

Results 27 comments of Nick Edgar

When doing a reduce, isn't each key unique, even for different group levels? Seems like it should be feasible to just omit the startkey_docid when reduce is True. I'm trying...

I'm seeing this with `@nomiclabs/hardhat-ethers` and `ethers` 5.5.4. To reproduce, call `ownerOf(id) public view` on any ERC-721 contract where the token does not exist. The contract typically rejects with a...

I've added a standalone example [there](https://github.com/ethers-io/ethers.js/discussions/2602). > It seems to be a combination of factors. Something with the hardhat config changes the original error message to have execution reverted: (plus...

Hi @fvictorio. It's actually a combination of both HardHat and ethers.js. See TL;DR here: https://github.com/ethers-io/ethers.js/discussions/2602#discussioncomment-2313689. I've been unable to reproduce it using ethers.js on its own. But it's code in...

My `hardhat.config.js` has: ```js require("@nomiclabs/hardhat-ethers"); // require("dotenv").config(); const { INFURA_KEY, PRIVATE_KEY } = process.env; /** * @type import('hardhat/config').HardhatUserConfig */ module.exports = { solidity: { version: "0.8.12", }, }, networks: {...

It can be reproduced with any ERC-721 contract, when the token ID does not exist, assuming the contract's `ownerOf` implementation `requires` it to exist (the usual OpenZeppelin and OpenSea tutorial...

I added the following at the top of [JsonRpcProvider's checkError](https://github.com/ethers-io/ethers.js/blob/master/packages/providers/src.ts/json-rpc-provider.ts#L25), in the local compiled JS code at `node_modules/@ethersproject/providers/lib/json-rpc-provider.js`: ```js console.log("checkError:", {method, error: {message: error.message, ...error}, params}); ``` (the funkiness for...

I've put this in a standalone repo: https://github.com/nedgar/ethers-hardhat-error-handling-issue

@pheuberger At the time of filing this, the string was coming from [this line in JsonRpcProvider](https://github.com/ethers-io/ethers.js/blob/6807a76b8ddfdd121f98b21e269de3b195a7673e/packages/providers/src.ts/json-rpc-provider.ts#L80): ```ts logger.throwError("cannot estimate gas; transaction may fail or may require manual gas limit", Logger.errors.UNPREDICTABLE_GAS_LIMIT,...

See [comment above](https://github.com/NomicFoundation/hardhat/issues/2248#issuecomment-1062215698) for context.