From 6811690941e5c62cd98de8fcbbff984933273249 Mon Sep 17 00:00:00 2001 From: DockBoss <56698307+DockBoss@users.noreply.github.com> Date: Thu, 12 Aug 2021 04:51:01 -0500 Subject: [PATCH 1/9] Create eth_call.md - [ ] Geth - [ ] OpenEthereum - [ ] Nethermind - [ ] Besu - [ ] Erigon --- src/description/eth_call.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/description/eth_call.md diff --git a/src/description/eth_call.md b/src/description/eth_call.md new file mode 100644 index 000000000..2e6a6d0af --- /dev/null +++ b/src/description/eth_call.md @@ -0,0 +1,15 @@ +* **MUST NOT** affect on-chain state + +* **MUST** accept a `from` account that does not exist on-chain and if `from` is not defined it **MUST** be set to `0x0000000000000000000000000000000000000000` + +* If the `to` is null or not defined on-chain it **MUST** return an empty hex string + +* If `max_fee_per_gas` or `max_priority_fee_per_gas` is set the other must be set manually, otherwise they both **MUST** be set to the `gasPrice` or 0 when `gasPrice` is null + +* **MUST** accept `gas` that is greater than or equal to the minimum price for the current transaction call and less than `2^64 - 1` or `0xffffffffffffffff` + +* **MUST** consider gas to equal 0 if the `gas` parameter is equal to `null` + +* If any fee or `value` is a non-zero value your account balance **MUST** be checked to ensure account has enough funds + +* **MUST** accept an optional input parameter `data` to interact with contract methods From de38b1d79c96289f01283f0b7cd6f92966a5f633 Mon Sep 17 00:00:00 2001 From: DockBoss <56698307+DockBoss@users.noreply.github.com> Date: Sun, 22 Aug 2021 00:28:42 -0500 Subject: [PATCH 2/9] Update src/description/eth_call.md Co-authored-by: Micah Zoltu --- src/description/eth_call.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/description/eth_call.md b/src/description/eth_call.md index 2e6a6d0af..7fb9a5372 100644 --- a/src/description/eth_call.md +++ b/src/description/eth_call.md @@ -10,6 +10,6 @@ * **MUST** consider gas to equal 0 if the `gas` parameter is equal to `null` -* If any fee or `value` is a non-zero value your account balance **MUST** be checked to ensure account has enough funds + * If any non-zero fee or `value` is provided the `from` account balance **MUST** be checked to ensure account has enough funds * **MUST** accept an optional input parameter `data` to interact with contract methods From 744e204aa0a22e8ebcfc6122f377b5a0298cc9a0 Mon Sep 17 00:00:00 2001 From: DockBoss <56698307+DockBoss@users.noreply.github.com> Date: Sun, 22 Aug 2021 00:36:45 -0500 Subject: [PATCH 3/9] Update eth_call.md --- src/description/eth_call.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/description/eth_call.md b/src/description/eth_call.md index 7fb9a5372..b8c2411a1 100644 --- a/src/description/eth_call.md +++ b/src/description/eth_call.md @@ -6,10 +6,8 @@ * If `max_fee_per_gas` or `max_priority_fee_per_gas` is set the other must be set manually, otherwise they both **MUST** be set to the `gasPrice` or 0 when `gasPrice` is null -* **MUST** accept `gas` that is greater than or equal to the minimum price for the current transaction call and less than `2^64 - 1` or `0xffffffffffffffff` +* **MUST** accept `gas` that is greater than or equal to the minimum price for the current transaction call * **MUST** consider gas to equal 0 if the `gas` parameter is equal to `null` * If any non-zero fee or `value` is provided the `from` account balance **MUST** be checked to ensure account has enough funds - -* **MUST** accept an optional input parameter `data` to interact with contract methods From 313b80b7672058e44e6882ca1e9c6b5d7eb3c9a0 Mon Sep 17 00:00:00 2001 From: DockBoss <56698307+DockBoss@users.noreply.github.com> Date: Sun, 22 Aug 2021 00:40:11 -0500 Subject: [PATCH 4/9] Update eth_call.md --- src/description/eth_call.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/description/eth_call.md b/src/description/eth_call.md index b8c2411a1..30bd6e23b 100644 --- a/src/description/eth_call.md +++ b/src/description/eth_call.md @@ -6,8 +6,6 @@ * If `max_fee_per_gas` or `max_priority_fee_per_gas` is set the other must be set manually, otherwise they both **MUST** be set to the `gasPrice` or 0 when `gasPrice` is null -* **MUST** accept `gas` that is greater than or equal to the minimum price for the current transaction call - * **MUST** consider gas to equal 0 if the `gas` parameter is equal to `null` - * If any non-zero fee or `value` is provided the `from` account balance **MUST** be checked to ensure account has enough funds +* If any non-zero fee or `value` is provided the `from` account balance **MUST** be checked to ensure account has enough funds From 393f7144c7b786485bc2de12acaadea9ad9d8a12 Mon Sep 17 00:00:00 2001 From: DockBoss <56698307+DockBoss@users.noreply.github.com> Date: Sun, 22 Aug 2021 00:46:47 -0500 Subject: [PATCH 5/9] Update eth_call.md --- src/description/eth_call.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/description/eth_call.md b/src/description/eth_call.md index 30bd6e23b..62729b079 100644 --- a/src/description/eth_call.md +++ b/src/description/eth_call.md @@ -1,8 +1,8 @@ * **MUST NOT** affect on-chain state -* **MUST** accept a `from` account that does not exist on-chain and if `from` is not defined it **MUST** be set to `0x0000000000000000000000000000000000000000` +* **MUST** allow a `from` parameter that does not exist on-chain and if `from` is not defined it **MUST** be interpreted as `0x0000000000000000000000000000000000000000` -* If the `to` is null or not defined on-chain it **MUST** return an empty hex string +* If the `to` is null or not defined on-chain and there is no `data` parameter it **MUST** return an empty hex string * If `max_fee_per_gas` or `max_priority_fee_per_gas` is set the other must be set manually, otherwise they both **MUST** be set to the `gasPrice` or 0 when `gasPrice` is null From 42f8f483b4c093819fa79cfe948c9e9c9718beae Mon Sep 17 00:00:00 2001 From: DockBoss <56698307+DockBoss@users.noreply.github.com> Date: Mon, 23 Aug 2021 13:54:23 -0500 Subject: [PATCH 6/9] Update eth_call.md --- src/description/eth_call.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/description/eth_call.md b/src/description/eth_call.md index 62729b079..ce38cfb24 100644 --- a/src/description/eth_call.md +++ b/src/description/eth_call.md @@ -4,7 +4,7 @@ * If the `to` is null or not defined on-chain and there is no `data` parameter it **MUST** return an empty hex string -* If `max_fee_per_gas` or `max_priority_fee_per_gas` is set the other must be set manually, otherwise they both **MUST** be set to the `gasPrice` or 0 when `gasPrice` is null +* If the `gasPrice` parameter is used it **MUST** interpret it as the `maxFeePerGas` and `maxPriorityFeePerGas` both equal to the value of the `gasPrice` parameter or 0 when `gasPrice` is null * **MUST** consider gas to equal 0 if the `gas` parameter is equal to `null` From dacfb278f834ffd8d5657c64c18ef845dca7c318 Mon Sep 17 00:00:00 2001 From: Alita Moore Date: Wed, 25 Aug 2021 00:57:43 -0500 Subject: [PATCH 7/9] update --- src/description/eth_call.md | 1 + 1 file changed, 1 insertion(+) diff --git a/src/description/eth_call.md b/src/description/eth_call.md index ce38cfb24..3bf600840 100644 --- a/src/description/eth_call.md +++ b/src/description/eth_call.md @@ -1,6 +1,7 @@ * **MUST NOT** affect on-chain state * **MUST** allow a `from` parameter that does not exist on-chain and if `from` is not defined it **MUST** be interpreted as `0x0000000000000000000000000000000000000000` + * If the `to` is null or not defined on-chain and there is no `data` parameter it **MUST** return an empty hex string From a6c87ee0b660bca9e9e2eb46d1d888daa66d21bd Mon Sep 17 00:00:00 2001 From: DockBoss <56698307+DockBoss@users.noreply.github.com> Date: Wed, 25 Aug 2021 11:24:03 -0500 Subject: [PATCH 8/9] Update eth_call.md --- src/description/eth_call.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/description/eth_call.md b/src/description/eth_call.md index 3bf600840..014eb42f7 100644 --- a/src/description/eth_call.md +++ b/src/description/eth_call.md @@ -9,4 +9,4 @@ * **MUST** consider gas to equal 0 if the `gas` parameter is equal to `null` -* If any non-zero fee or `value` is provided the `from` account balance **MUST** be checked to ensure account has enough funds +* If any non-zero fee or `value` is provided the `from` account balance **MUST** be checked to ensure account has enough funds, in the case that the account has insufficient funds it **MUST** error. From eca45d305c5f85fb6c9423ac988d982718d94405 Mon Sep 17 00:00:00 2001 From: DockBoss <56698307+DockBoss@users.noreply.github.com> Date: Wed, 25 Aug 2021 11:34:20 -0500 Subject: [PATCH 9/9] Update eth_call.md --- src/description/eth_call.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/description/eth_call.md b/src/description/eth_call.md index 014eb42f7..2e3a9dabe 100644 --- a/src/description/eth_call.md +++ b/src/description/eth_call.md @@ -7,6 +7,6 @@ * If the `gasPrice` parameter is used it **MUST** interpret it as the `maxFeePerGas` and `maxPriorityFeePerGas` both equal to the value of the `gasPrice` parameter or 0 when `gasPrice` is null -* **MUST** consider gas to equal 0 if the `gas` parameter is equal to `null` +* **MUST** consider gas to equal 80000000 if the `gas` parameter is equal to `null` * If any non-zero fee or `value` is provided the `from` account balance **MUST** be checked to ensure account has enough funds, in the case that the account has insufficient funds it **MUST** error.