Skip to content

Commit

Permalink
Merge pull request #3646 from onflow/jp-c1.0-mop-up
Browse files Browse the repository at this point in the history
  • Loading branch information
turbolent authored Oct 28, 2024
2 parents c4e631e + aa3809d commit 0b92557
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions npm-packages/cadence-parser/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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!")
}
}
Expand Down
6 changes: 3 additions & 3 deletions tools/ast-explorer/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
}
Expand Down

0 comments on commit 0b92557

Please sign in to comment.