Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.

Commit 924d34d

Browse files
authored
Merge pull request #4236 from trufflesuite/develop
chore(release): publish v7.7.5
2 parents 533f002 + 9e011e9 commit 924d34d

File tree

10 files changed

+588
-562
lines changed

10 files changed

+588
-562
lines changed

.github/workflows/push.yml

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -55,29 +55,6 @@ jobs:
5555
if: startsWith(matrix.os, 'windows-')
5656
uses: microsoft/[email protected]
5757

58-
- name: install node tools
59-
# we don't need to install the windows-build-tools package, as we
60-
# already have almost everything we need. We only need to install
61-
# python 2.7. Also windows-build-tools@4 fails to install because some
62-
# resources it downloads no longer exist, and windows-build-tools@5
63-
# fails to install Python (it will wait on the python installer forever)
64-
if: startsWith(matrix.os, 'windows-')
65-
uses: actions/setup-python@5ccb29d8773c3f3f653e1705f474dfaa8a06a912 #v4.4.0
66-
with:
67-
python-version: "2.7"
68-
69-
- name: install node-gyp
70-
if: startsWith(matrix.os, 'windows-')
71-
run: npm install --global [email protected]
72-
73-
- name: Set node config to use python2.7
74-
if: startsWith(matrix.os, 'windows-')
75-
run: npm config set python python2.7
76-
77-
- name: Set node config to set msvs_version to 2019
78-
if: startsWith(matrix.os, 'windows-')
79-
run: npm config set msvs_version 2019 --global
80-
8158
- run: npm ci
8259
- run: npm run tsc
8360
- run: npm test

src/chains/ethereum/ethereum/src/api.ts

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3135,11 +3135,12 @@ export default class EthereumApi implements Api {
31353135
* console.log(transactionTrace);
31363136
* ```
31373137
*/
3138+
@assertArgLength(1, 2)
31383139
async debug_traceTransaction(
31393140
transactionHash: DATA,
3140-
options?: Ethereum.TraceTransactionOptions
3141+
options: Ethereum.TraceTransactionOptions = {}
31413142
): Promise<Ethereum.TraceTransactionResult<"private">> {
3142-
return this.#blockchain.traceTransaction(transactionHash, options || {});
3143+
return this.#blockchain.traceTransaction(transactionHash, options);
31433144
}
31443145

31453146
// TODO: example doesn't return correct value
@@ -3186,14 +3187,22 @@ export default class EthereumApi implements Api {
31863187
* console.log(storage);
31873188
* ```
31883189
*/
3190+
@assertArgLength(5)
31893191
async debug_storageRangeAt(
31903192
blockHash: DATA,
31913193
transactionIndex: number,
31923194
contractAddress: DATA,
31933195
startKey: DATA,
31943196
maxResult: number
31953197
): Promise<Ethereum.StorageRangeAtResult<"private">> {
3196-
return this.#blockchain.storageRangeAt(
3198+
const blockchain = this.#blockchain;
3199+
if (blockchain.fallback) {
3200+
throw new Error(
3201+
"debug_storageRangeAt is not supported on a forked network. See https://github.com/trufflesuite/ganache/issues/3488 for details."
3202+
);
3203+
}
3204+
3205+
return blockchain.storageRangeAt(
31973206
blockHash,
31983207
Quantity.toNumber(transactionIndex),
31993208
contractAddress,

0 commit comments

Comments
 (0)