Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
phearnot committed Nov 23, 2023
1 parent 5a68c59 commit dbdb722
Show file tree
Hide file tree
Showing 22 changed files with 1,991 additions and 2,187 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ object TxStateSnapshotHashBuilder {
changedKeys += address.bytes ++ alias.name.getBytes(StandardCharsets.UTF_8)
}

snapshot.accountScriptsByAddress.foreach { case (address, sv) =>
changedKeys += address.bytes ++ (sv match {
case Some(s) => s.script.bytes().arr ++ s.publicKey.arr ++ Longs.toByteArray(s.verifierComplexity)
snapshot.accountScripts.foreach { case (pk, sv) =>
changedKeys += pk.arr ++ (sv match {
case Some(s) => s.script.bytes().arr ++ Longs.toByteArray(s.verifierComplexity)
case None => Array.emptyByteArray
})
}
Expand Down
6 changes: 3 additions & 3 deletions node/src/test/scala/com/wavesplatform/TestValues.scala
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ object TestValues {
def invokeFee(scripts: Int = 0, issues: Int = 0): Long =
invokeFee + scripts * ScriptExtraFee + issues * FeeConstants(TransactionType.Issue) * FeeUnit

val (script, scriptComplexity) = ScriptCompiler
lazy val (script, scriptComplexity) = ScriptCompiler
.compile(
"""
|{-# STDLIB_VERSION 2 #-}
Expand All @@ -35,7 +35,7 @@ object TestValues {
)
.explicitGet()

val (assetScript, assetScriptComplexity) = ScriptCompiler
lazy val (assetScript, assetScriptComplexity) = ScriptCompiler
.compile(
"""
|{-# STDLIB_VERSION 2 #-}
Expand All @@ -47,7 +47,7 @@ object TestValues {
)
.explicitGet()

val (rejectAssetScript, rejectAssetScriptComplexity) = ScriptCompiler
lazy val (rejectAssetScript, rejectAssetScriptComplexity) = ScriptCompiler
.compile(
"""
|{-# STDLIB_VERSION 2 #-}
Expand Down
Loading

0 comments on commit dbdb722

Please sign in to comment.