Skip to content

Commit

Permalink
Streamline naming of delegate_calls with forward_calls (#1192)
Browse files Browse the repository at this point in the history
  • Loading branch information
cmichi committed Mar 17, 2022
1 parent eea73e5 commit eb13fd3
Show file tree
Hide file tree
Showing 10 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion RELEASES.md
Expand Up @@ -42,7 +42,7 @@ The `CallBuilder` API changed to now support two types of calls:
* `DelegateCall`: a delegated call.<br/>
This enables writing upgradeable contracts using
the `delegate` pattern. An example has been added to demonstrate this:
[`delegate-call`](https://github.com/paritytech/ink/tree/master/examples/upgradeable-contracts/delegate-call).
[`delegate-calls`](https://github.com/paritytech/ink/tree/master/examples/upgradeable-contracts/delegate-calls).

This is a breaking change, users must now specify the `call_type` to the builder manually.

Expand Down
6 changes: 3 additions & 3 deletions examples/upgradeable-contracts/README.md
Expand Up @@ -7,15 +7,15 @@ See [here](https://docs.openzeppelin.com/upgrades-plugins/1.x/proxies) for
more information on proxy patterns.


## `forward-calls`
## [`forward-calls`](https://github.com/paritytech/ink/tree/master/examples/upgradeable-contracts/forward-calls)

* Forwards any call that does not match a selector of itself to another contract.
* The other contract needs to be deployed on-chain.
* State is stored in the storage of the contract to which calls are forwarded.


## `delegate-call`
## [`delegate-calls`](https://github.com/paritytech/ink/tree/master/examples/upgradeable-contracts/delegate-calls)

* Executes any call that does not match a selector of itself with the code of another contract.
* The other contract does not need to be deployed on-chain.
* The other contract does not need to be deployed on-chain.
* State is stored in the storage of the originally called contract.
@@ -1,5 +1,5 @@
[package]
name = "delegate_call"
name = "delegate_calls"
version = "3.0.0"
authors = ["Parity Technologies <admin@parity.io>"]
edition = "2021"
Expand All @@ -16,7 +16,7 @@ scale = { package = "parity-scale-codec", version = "3", default-features = fals
scale-info = { version = "2", default-features = false, features = ["derive"], optional = true }

[lib]
name = "delegate_call"
name = "delegate_calls"
path = "lib.rs"
crate-type = ["cdylib"]

Expand Down

0 comments on commit eb13fd3

Please sign in to comment.