Skip to content

Commit

Permalink
fixup! Update Blockchain.reset() function to require a block height
Browse files Browse the repository at this point in the history
  • Loading branch information
m-Peter committed Aug 7, 2023
1 parent 2937500 commit aee08f0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions runtime/stdlib/contracts/test.cdc
Original file line number Diff line number Diff line change
Expand Up @@ -221,8 +221,8 @@ pub contract Test {

/// Resets the state of the blockchain at the given height.
///
pub fun reset(_ height: UInt64) {
self.backend.reset(height)
pub fun reset(to height: UInt64) {
self.backend.reset(to: height)
}
}

Expand Down Expand Up @@ -408,7 +408,7 @@ pub contract Test {

/// Resets the state of the blockchain at the given height.
///
pub fun reset(_ height: UInt64)
pub fun reset(to height: UInt64)
}

/// Returns a new matcher that negates the test of the given matcher.
Expand Down

0 comments on commit aee08f0

Please sign in to comment.