Open davidmurdoch opened 1 year ago
Another "you didn't do it, but..."
const block = await blocks.get(number.toBuffer()).catch(_ => null);
The catch here might be extraneous, as we catch "NOTFOUND" exceptions in manager.ts https://github.com/trufflesuite/ganache/blob/3a74e07ea9a90ec7d6749cfad5703d679ba0dac1/src/chains/ethereum/ethereum/src/data-managers/manager.ts#L30
catch
manager.ts
Do with that thought what you will.
_Originally posted by @jeffsmale90 in https://github.com/trufflesuite/ganache/pull/3470#discussion_r946310115_
The
catch
here might be extraneous, as we catch "NOTFOUND" exceptions inmanager.ts
https://github.com/trufflesuite/ganache/blob/3a74e07ea9a90ec7d6749cfad5703d679ba0dac1/src/chains/ethereum/ethereum/src/data-managers/manager.ts#L30Do with that thought what you will.
_Originally posted by @jeffsmale90 in https://github.com/trufflesuite/ganache/pull/3470#discussion_r946310115_