Skip to content

Commit 4e13584

Browse files
committed
fix: undo balance updation
1 parent 07cb818 commit 4e13584

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

jam/execution/invocations/functions/accumulate_fns.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,11 @@ def new(gas: Gas, registers: list, memory: Memory, context: AccumulationContext,
186186
new_service = AccountData(
187187
service=AccountMetadata(
188188
code_hash=ServiceCodeHash(c),
189-
balance=Balance(0),
189+
balance=Balance(
190+
BASIC_MINIMUM_BALANCE
191+
+ ADDITIONAL_BALANCE_PER_ITEM * 2
192+
+ ADDITIONAL_BALANCE_PER_OCTET * (81 + l) - f
193+
),
190194
gas_limit=Gas(g),
191195
min_gas=Gas(m),
192196
num_o=Ao(0),
@@ -202,7 +206,7 @@ def new(gas: Gas, registers: list, memory: Memory, context: AccumulationContext,
202206
LookupTable(hash=ServiceCodeHash(c), length=BlobLength(l)): Timestamps([])
203207
})
204208
)
205-
new_service.service.balance = new_service.service.t
209+
# new_service.service.balance = new_service.service.t
206210
# print("new balance", new_service.service.balance)
207211

208212

0 commit comments

Comments
 (0)