From 5c6c1cd8cb92da1a821ed222a17d85e460561908 Mon Sep 17 00:00:00 2001 From: Patricio Palladino Date: Tue, 28 May 2019 18:18:45 -0300 Subject: [PATCH] Improve selfdestruct maps doc --- lib/evm/eei.ts | 3 +++ lib/evm/interpreter.ts | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/evm/eei.ts b/lib/evm/eei.ts index 5457398695..f1be73c5ff 100644 --- a/lib/evm/eei.ts +++ b/lib/evm/eei.ts @@ -27,6 +27,9 @@ export interface RunResult { logs: any // TODO: define type for Log (each log: [Buffer(address), [Buffer(topic0), ...]]) returnValue?: Buffer gasRefund: BN + /** + * A map from the accounts that have self-destructed to the addresses to send their funds to + */ selfdestruct: { [k: string]: Buffer } } diff --git a/lib/evm/interpreter.ts b/lib/evm/interpreter.ts index bc0addc8c7..4e379f39a4 100644 --- a/lib/evm/interpreter.ts +++ b/lib/evm/interpreter.ts @@ -75,7 +75,7 @@ export interface ExecResult { */ gasRefund?: BN /** - * A set of accounts that have self-destructed + * A map from the accounts that have self-destructed to the addresses to send their funds to */ selfdestruct?: { [k: string]: Buffer } }