From 849f4db80bad553c449024fa71ed50f11f9c876a Mon Sep 17 00:00:00 2001 From: Eduardo Pereira Date: Fri, 11 Oct 2019 14:12:50 -0300 Subject: [PATCH 1/2] Adding debug_traceTransaction call on /eth interface --- src/loom-provider.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/loom-provider.ts b/src/loom-provider.ts index 4838fa5e..13d81606 100644 --- a/src/loom-provider.ts +++ b/src/loom-provider.ts @@ -305,6 +305,7 @@ export class LoomProvider { this._ethRPCMethods.set('eth_newBlockFilter', this._ethCallSupportedMethod) this._ethRPCMethods.set('eth_newFilter', this._ethCallSupportedMethod) this._ethRPCMethods.set('eth_uninstallFilter', this._ethCallSupportedMethod) + this._ethRPCMethods.set('debug_traceTransaction', this._ethCallSupportedMethod) this._ethRPCMethods.set('eth_subscribe', this._ethSubscribe) this._ethRPCMethods.set('eth_unsubscribe', this._ethUnsubscribe) } From 9d28b290460ab2315c79d6673959c0d6c6cc71a3 Mon Sep 17 00:00:00 2001 From: Piers Shepperson Date: Fri, 15 Nov 2019 11:53:24 +0000 Subject: [PATCH 2/2] debug_storageRangeAt --- src/loom-provider.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/loom-provider.ts b/src/loom-provider.ts index 5a018c67..712d4fd9 100644 --- a/src/loom-provider.ts +++ b/src/loom-provider.ts @@ -306,6 +306,7 @@ export class LoomProvider { this._ethRPCMethods.set('eth_newFilter', this._ethCallSupportedMethod) this._ethRPCMethods.set('eth_uninstallFilter', this._ethCallSupportedMethod) this._ethRPCMethods.set('debug_traceTransaction', this._ethCallSupportedMethod) + this._ethRPCMethods.set('debug_storageRangeAt', this._ethCallSupportedMethod) this._ethRPCMethods.set('eth_getStorageAt', this._ethCallSupportedMethod) this._ethRPCMethods.set('eth_subscribe', this._ethSubscribe) this._ethRPCMethods.set('eth_unsubscribe', this._ethUnsubscribe) @@ -426,7 +427,7 @@ export class LoomProvider { const prepareMethodToCall = (method: string) => { const methodToCall = this._ethRPCMethods.get(method) if (!methodToCall) { - throw Error(`Method "${payload.method}" not supported on this provider`) + throw Error(`Method "${payload.method}"piers not supported on this provider`) } return methodToCall }