From 3fe049d0aeaa63fa3c3791462fe09cfcda93710d Mon Sep 17 00:00:00 2001 From: j pimmel Date: Fri, 25 Oct 2024 21:32:31 -0700 Subject: [PATCH 1/2] Update README.md --- npm-packages/cadence-parser/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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!") } } From aa3809df32218e9bc40b85dbf3b872fc39c30f7a Mon Sep 17 00:00:00 2001 From: j pimmel Date: Fri, 25 Oct 2024 21:35:03 -0700 Subject: [PATCH 2/2] Update index.tsx --- tools/ast-explorer/src/index.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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() } }