Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/onflow/cadence into supun…
Browse files Browse the repository at this point in the history
…/vm-cadence-1.0
  • Loading branch information
SupunS committed Oct 28, 2024
2 parents d2a9fcc + 0b92557 commit b2195be
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 b2195be

Please sign in to comment.