Skip to content

Commit

Permalink
Merge pull request #3727 from greymistcube/chore/fix-exception-message
Browse files Browse the repository at this point in the history
🩹 Added missing information in Exception
  • Loading branch information
greymistcube authored Apr 4, 2024
2 parents c000850 + 52eec0a commit f63f65c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Libplanet/Blockchain/BlockChain.cs
Original file line number Diff line number Diff line change
Expand Up @@ -385,8 +385,9 @@ public static BlockChain Create(
if (!genesisBlock.StateRootHash.Equals(computedStateRootHash))
{
throw new InvalidBlockStateRootHashException(
"Given block #{Index} {Hash} has a state root hash {ExpectedStateRootHash} " +
"that is different from the calculated state root hash {ActualStateRootHash}",
$"Given block #{genesisBlock.Index} {genesisBlock.Hash} has " +
$"a state root hash {genesisBlock.StateRootHash} that is different " +
$"from the calculated state root hash {computedStateRootHash}",
genesisBlock.StateRootHash,
computedStateRootHash);
}
Expand Down

0 comments on commit f63f65c

Please sign in to comment.