Giter Club home page Giter Club logo

beginner-cadence-course's People

Contributors

0xcryptochica avatar adam23 avatar btspoony avatar caosbad avatar gofenix avatar guisong-fu avatar j-5-s avatar jacob-tucker avatar kkimos avatar lanfordcai avatar maris205 avatar meharab avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

beginner-cadence-course's Issues

Issue with Chapter 3, Day 3 Code Example

Hello!

The final code example, of the script transaction that will return the language from the reference appears to generate an error in the flow playground:

import Test from 0x01

pub fun main(): String {
  let ref = Test.getReference(key: "Hello!")
  return ref.language // returns "English"  <--- produces this error: value of type @Test.Greeting? has no member "language". Unknown member.
}

I was able to fix it by changing the code to the following:

import Test from 0x01

pub fun main(): String {
  let ref = Test.getReference(key: "Hello!")
  return ref!.language // returns "English"
}

Not an actual problem

Hello. I've found that we don't need to use quotes while writing TRANSACTION ARGUMENTS. So, may be this is not an actual information in course readme.md
Thank you, you're the best.

should be `creator` instead of `signer` in `minter` variable assign section

https://github.com/jacob-tucker/Flow-Zero-to-Jacob/tree/main/chapter4.0/day4

import CryptoPoops from 0x01

transaction() {

  // Let's assume the `signer` was the one who deployed the contract, since only they have the `Minter` resource
  prepare(creator: AuthAccount, recipient: AuthAccount) {
    // Get a reference to the `Minter` from the `creator`
    let minter = signer.borrow<&CryptoPoops.Minter>(from: /storage/Minter)
                    ?? panic("This signer is not the one who deployed the contract.")

    // create the new `Minter` resource
    let newMinter <- minter.createMinter()

    // the `recipient` save it to their account
    recipient.save(<- newMinter, to: /storage/Minter)
  }

}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.