diff --git a/npm-packages/cadence-parser/README.md b/npm-packages/cadence-parser/README.md index 6315c24b5e..93e999ce23 100644 --- a/npm-packages/cadence-parser/README.md +++ b/npm-packages/cadence-parser/README.md @@ -11,8 +11,8 @@ import {CadenceParser} from "@onflow/cadence-parser" const parser = await CadenceParser.create("cadence-parser.wasm") const ast = parser.parse(` - pub contract HelloWorld { - pub fun hello() { + access(all) contract HelloWorld { + access(all) fun hello() { log("Hello, world!") } } diff --git a/tools/ast-explorer/src/index.tsx b/tools/ast-explorer/src/index.tsx index 265465b82d..d825d56bd4 100644 --- a/tools/ast-explorer/src/index.tsx +++ b/tools/ast-explorer/src/index.tsx @@ -24,9 +24,9 @@ import { Data, TreeView } from "./tree"; import { createRoot } from 'react-dom/client'; const defaultCode = ` -pub contract C { - pub resource R {} - pub fun createR(): @R { +access(all) contract C { + access(all) resource R {} + access(all) fun createR(): @R { return <- create R() } }