Skip to content

Commit c4c45e6

Browse files
committed
impl as valid word
1 parent e85f29a commit c4c45e6

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

docs/book/spell-check-custom-words.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,3 +251,5 @@ Durations
251251
durations
252252
invariants
253253
postfix
254+
impl
255+
Impl

docs/book/src/sway-program-types/smart_contracts.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,15 +103,15 @@ Each special parameter is optional and assumes a default value when skipped:
103103

104104
## Impl Self Contracts
105105

106-
In some cases, it may be more convenient to avoid declaring an ABI and implement the contract directly, as shown in the example below.
106+
In some cases, it may be more convenient to avoid declaring an ABI and implement the contract directly, as shown in the example below.
107107

108108
Notice how there is no ABI specified in the `impl` item. In this case, the compiler will automatically create an ABI named as the package containing this `impl Contract` item, and will include each function in the ABI.
109109

110110
```sway
111111
{{#include ../../../../examples/wallet_smart_contract_self_impl/src/main.sw:abi_impl}}
112112
```
113113

114-
Without an ABI, there is no way for scripts and other contracts to use `abi(...)` and call this contract, but it can still be tested and called using any of available SDKs, as any other contract.
114+
Without an ABI, there is no way for scripts and other contracts to use `abi(...)` and call this contract, but it can still be tested and called using any of available SDKs, as any other contract.
115115

116116
The ABI name will be the "upper camel case" version of the package name containing the "impl Contract" item. `CONTRACT_ID` is a compiler special constant that references the contract being implemented in this file.
117117

0 commit comments

Comments
 (0)