Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Misc minor C1.0 updates #3646

Merged
merged 2 commits into from
Oct 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading