diff --git a/versioned_docs/version-1.0/language/contract-updatability.md b/versioned_docs/version-1.0/language/contract-updatability.md index bafaade..6f46ae2 100644 --- a/versioned_docs/version-1.0/language/contract-updatability.md +++ b/versioned_docs/version-1.0/language/contract-updatability.md @@ -180,6 +180,7 @@ A field may belong to a contract, struct, resource, or interface. access(all) contract Foo { + access(all) var a: String } @@ -189,6 +190,7 @@ A field may belong to a contract, struct, resource, or interface. access(all) contract Foo { + access(all) var a: Int // Invalid type change } diff --git a/versioned_docs/version-1.0/language/contracts.mdx b/versioned_docs/version-1.0/language/contracts.mdx index 9462c0f..d794923 100644 --- a/versioned_docs/version-1.0/language/contracts.mdx +++ b/versioned_docs/version-1.0/language/contracts.mdx @@ -116,8 +116,10 @@ but they have to be in the contract and not another top-level definition. // access(all) resource Vault {} + access(all) struct Hat {} + access(all) fun helloWorld(): String {} let num: Int