summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Jannotti <jj@cs.brown.edu>2022-02-08 11:48:32 -0500
committerJohn Jannotti <jj@cs.brown.edu>2022-02-08 11:48:32 -0500
commit46529d31f9259745be75326f317d59a1be5004f2 (patch)
tree399840d5ce37424b1ecbb51c0768e6ab53534484
parent2c7b9064f7555746b75d5df0c107647022f0df80 (diff)
spelling (and clarity) fixfeature/contract-to-contract
-rw-r--r--data/transactions/logic/eval.go16
1 files changed, 8 insertions, 8 deletions
diff --git a/data/transactions/logic/eval.go b/data/transactions/logic/eval.go
index 135e06d43..fd98b8594 100644
--- a/data/transactions/logic/eval.go
+++ b/data/transactions/logic/eval.go
@@ -3636,8 +3636,8 @@ func opAppLocalPut(cx *EvalContext) {
return
}
- // if writing the same value, do nothing, matching ledger behavior with
- // previous BuildEvalDelta mechanism
+ // if writing the same value, don't record in EvalDelta, matching ledger
+ // behavior with previous BuildEvalDelta mechanism
etv, ok, err := cx.Ledger.GetLocal(addr, cx.appID, key, accountIdx)
if err != nil {
cx.err = err
@@ -3672,8 +3672,8 @@ func opAppGlobalPut(cx *EvalContext) {
return
}
- // if writing the same value, do nothing, matching ledger behavior with
- // previous BuildEvalDelta mechanism
+ // if writing the same value, don't record in EvalDelta, matching ledger
+ // behavior with previous BuildEvalDelta mechanism
etv, ok, err := cx.Ledger.GetGlobal(cx.appID, key)
if err != nil {
cx.err = err
@@ -3710,8 +3710,8 @@ func opAppLocalDel(cx *EvalContext) {
return
}
- // if deleting a non-existant value, do nothing, matching ledger behavior
- // with previous BuildEvalDelta mechanism
+ // if deleting a non-existent value, don't record in EvalDelta, matching
+ // ledger behavior with previous BuildEvalDelta mechanism
if _, ok, err := cx.Ledger.GetLocal(addr, cx.appID, key, accountIdx); ok {
if err != nil {
cx.err = err
@@ -3744,8 +3744,8 @@ func opAppGlobalDel(cx *EvalContext) {
return
}
- // if deleting a non-existant value, do nothing, matching ledger behavior
- // with previous BuildEvalDelta mechanism
+ // if deleting a non-existent value, don't record in EvalDelta, matching
+ // ledger behavior with previous BuildEvalDelta mechanism
if _, ok, err := cx.Ledger.GetGlobal(cx.appID, key); ok {
if err != nil {
cx.err = err