From 497fb655c91d8a03967339192da9e38bb9f03749 Mon Sep 17 00:00:00 2001 From: Ardit Marku Date: Mon, 7 Aug 2023 19:33:15 +0300 Subject: [PATCH] Improve docstring wordings for Test contract --- runtime/stdlib/contracts/test.cdc | 8 ++++---- runtime/stdlib/test_emulatorbackend.go | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/runtime/stdlib/contracts/test.cdc b/runtime/stdlib/contracts/test.cdc index 6888f740c2..2fb5948732 100644 --- a/runtime/stdlib/contracts/test.cdc +++ b/runtime/stdlib/contracts/test.cdc @@ -122,7 +122,7 @@ pub contract Test { return self.backend.events(type) } - /// Resets the state of the blockchain at the given height. + /// Resets the state of the blockchain to the given height. /// pub fun reset(to height: UInt64) { self.backend.reset(to: height) @@ -168,11 +168,11 @@ pub contract Test { /// operations, such as transactions and scripts. /// pub struct interface Result { - /// The resulted status of an executed operation. + /// The result status of an executed operation. /// pub let status: ResultStatus - /// The optionally resulted error of an executed operation. + /// The optional error of an executed operation. /// pub let error: Error? } @@ -309,7 +309,7 @@ pub contract Test { /// pub fun events(_ type: Type?): [AnyStruct] - /// Resets the state of the blockchain at the given height. + /// Resets the state of the blockchain to the given height. /// pub fun reset(to height: UInt64) } diff --git a/runtime/stdlib/test_emulatorbackend.go b/runtime/stdlib/test_emulatorbackend.go index ecf2ef3cbb..cde1d1456c 100644 --- a/runtime/stdlib/test_emulatorbackend.go +++ b/runtime/stdlib/test_emulatorbackend.go @@ -666,7 +666,7 @@ func (t *testEmulatorBackendType) newEventsFunction( const testEmulatorBackendTypeResetFunctionName = "reset" const testEmulatorBackendTypeResetFunctionDocString = ` -Resets the state of the blockchain at the given height. +Resets the state of the blockchain to the given height. ` func (t *testEmulatorBackendType) newResetFunction(