From 41b1d9e3074bce0cbefdbd7417a78f67196613c8 Mon Sep 17 00:00:00 2001 From: muddlebee Date: Sat, 13 Apr 2024 02:00:14 +0530 Subject: [PATCH] Update code.md (#461) * Update code.md updated link to the incrementer example * Update code.md --- docs/api-contract/start/code.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/api-contract/start/code.md b/docs/api-contract/start/code.md index ee9f56c7ee..fb1bf75825 100644 --- a/docs/api-contract/start/code.md +++ b/docs/api-contract/start/code.md @@ -18,7 +18,7 @@ const code = new CodePromise(api, metadata, wasm); The newly generated `code` object lets you call `instantiate_with_code` without having to encode the data yourself. You will need to provide values for the instantiation options. Getting accurate gas and storage deposit costs is possible by calling the [instantiate](http://localhost:8080/substrate/rpc#instantiaterequest-instantiaterequest-at-blockhash-contractinstantiateresult) RPC, which dry runs the instantiation and returns the outcome. For the scope of this tutorial we will use hardcoded values. -Here is how you would retrieve the contract address after instantiation for an [ink! incrementer contract](https://github.com/paritytech/ink/blob/master/examples/incrementer/lib.rs), whose constructor signature looks like this: `new (initValue: i32)` +Here is how you would retrieve the contract address after instantiation for an [ink! incrementer contract](https://github.com/paritytech/ink-examples/blob/main/incrementer/lib.rs), whose constructor signature looks like this: `new (initValue: i32)` ```javascript // maximum gas to be consumed for the instantiation. if limit is too small the instantiation will fail.