@gearbox-protocol/sdk 8.28.3 → 8.28.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -63,6 +63,9 @@ class EthCallSpy {
|
|
|
63
63
|
get detectedCalls() {
|
|
64
64
|
return this.#detectedCalls;
|
|
65
65
|
}
|
|
66
|
+
get detectedBlock() {
|
|
67
|
+
return this.#detectedBlock;
|
|
68
|
+
}
|
|
66
69
|
#shouldStore(data) {
|
|
67
70
|
if (data.method === "eth_call" && typeof data.params[1] === "string" && // block number is present
|
|
68
71
|
data.params[1]?.startsWith("0x") && // and it's a block number
|
|
@@ -40,6 +40,9 @@ class EthCallSpy {
|
|
|
40
40
|
get detectedCalls() {
|
|
41
41
|
return this.#detectedCalls;
|
|
42
42
|
}
|
|
43
|
+
get detectedBlock() {
|
|
44
|
+
return this.#detectedBlock;
|
|
45
|
+
}
|
|
43
46
|
#shouldStore(data) {
|
|
44
47
|
if (data.method === "eth_call" && typeof data.params[1] === "string" && // block number is present
|
|
45
48
|
data.params[1]?.startsWith("0x") && // and it's a block number
|