Skip to content

Instantly share code, notes, and snippets.

@gajdosech2
Created June 27, 2021 17:52
Show Gist options
  • Save gajdosech2/3adee2909d5537b4ac3d8f9304161562 to your computer and use it in GitHub Desktop.
Save gajdosech2/3adee2909d5537b4ac3d8f9304161562 to your computer and use it in GitHub Desktop.
File containing an Celo Alfajores testnet address used to complete bounty https://gitcoin.co/issue/celo-org/gitcoin/7/100024749
0x0E1E7cA5C9DD71F74a090B5b7B39Ed678894F3fe
@gajdosech2
Copy link
Author

NOTE:

I do believe there is an ERROR in the bounty description at https://gitcoin.co/issue/celo-org/gitcoin/7/100024749.

It says the following:

With this address, we want to see token deposits from the faucet and two small transactions out of the account (1 CELO and 1 cUSD).

However, the helloCelo.js file after following the tutorial at https://docs.celo.org/developer-guide/start/hellocelo specifies an amount of 100000 in CELO Wei in the send() function. As described in the tutorial 1 CELO = 10^18 CELO Wei, see paragraph:

Note that the balanceOf() function returns objects with type BigNumber because balances are represented in Celo as a 256 bit unsigned integer, and JavaScript's number type cannot safely handle numbers of that size. Note also that the balance values are reported in units of CELO Wei, where one CELO = 10**18 CELO Wei.

Therefore, following the tutorial only 100000 / 10^(18) == 10^(-13) == 0.0000000000001 CELO is sent, as opposed to 1 CELO written in the bounty description.

@critesjosh
Copy link

thanks for pointing this out!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment