Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: changed invalid links #247

Merged
merged 1 commit into from
Jan 11, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ You cannot perform arbitrary mutation on contract state with transactions since

It is true that you can alter contract code, accounts, and access keys using normal transactions via the `DeployContract`, `CreateAccount`, and `AddKey` [actions](https://nomicon.io/RuntimeSpec/Actions.html?highlight=actions#actions). But this limits you to altering your own account or sub-account. `patchState` allows you to perform these operations on any account.

To see an example of how to do this, see the [patch-state test](https://github.com/near/workspaces-js/blob/main/__tests__/02.patch-state.ava.ts).
To see an example of how to do this, see the [patch-state test](https://github.com/near/near-workspaces-js/blob/main/__tests__/ci-ignore-02.patch-state.ava.ts).

Time Traveling
===============
Expand All @@ -280,7 +280,7 @@ In Sandbox-mode, you can forward time-related state (the block height, timestamp
This means contracts which require time sensitive data do not need to sit and wait the same amount of time for blocks on the sandbox to be produced.
We can simply just call the api to get us further in time.

For an example, see the [fast-forward test](./__tests__/08.fast-forward.ava.ts)
For an example, see the [fast-forward test](./__tests__/09.fast-forward.ava.ts)

Note: `fastForward` does not speed up an in-flight transactions.

Expand All @@ -289,7 +289,7 @@ Pro Tips

* `NEAR_WORKSPACES_DEBUG=true` – run tests with this environment variable set to get copious debug output and a full log file for each Sandbox instance.

* `Worker.init` [config](https://github.com/near/workspaces-js/blob/main/packages/js/src/interfaces.ts) – you can pass a config object as the first argument to `Worker.init`. This lets you do things like:
* `Worker.init` [config](https://github.com/near/near-workspaces-js/blob/1ed7aa1579af53c87086f09f92cc0c3df02743d4/packages/js/src/types.ts#L73) – you can pass a config object as the first argument to `Worker.init`. This lets you do things like:

* skip initialization if specified data directory already exists (the default behavior)

Expand Down
Loading