critesjosh / hello_contract-truffle Goto Github PK
View Code? Open in Web Editor NEWa 'hello world' exercise with truffle and celo
a 'hello world' exercise with truffle and celo
I followed the tutorial on
https://docs.celo.org/developer-guide/start/hello-contract-remote-node
when i run the migration to alfajores i get the following error
➜ hello_contract-truffle git:(master) ✗ truffle migrate --network alfajores
Compiling your contracts...
===========================
> Everything is up to date, there is nothing to compile.
Starting migrations...
======================
> Network name: 'alfajores'
> Network id: 44787
> Block gas limit: 0 (0x0)
1_initial_migration.js
======================
Deploying 'Migrations'
----------------------
Error: *** Deployment Failed ***
"Migrations" -- invalid argument 0: json: cannot unmarshal invalid hex string into Go value of type hexutil.Bytes.
at /home/philipp/.nvm/versions/node/v14.18.0/lib/node_modules/truffle/build/webpack:/packages/deployer/src/deployment.js:365:1
at processTicksAndRejections (internal/process/task_queues.js:95:5)
at Migration._deploy (/home/philipp/.nvm/versions/node/v14.18.0/lib/node_modules/truffle/build/webpack:/packages/migrate/Migration.js:70:1)
at Migration._load (/home/philipp/.nvm/versions/node/v14.18.0/lib/node_modules/truffle/build/webpack:/packages/migrate/Migration.js:56:1)
at Migration.run (/home/philipp/.nvm/versions/node/v14.18.0/lib/node_modules/truffle/build/webpack:/packages/migrate/Migration.js:217:1)
at Object.runMigrations (/home/philipp/.nvm/versions/node/v14.18.0/lib/node_modules/truffle/build/webpack:/packages/migrate/index.js:150:1)
at Object.runFrom (/home/philipp/.nvm/versions/node/v14.18.0/lib/node_modules/truffle/build/webpack:/packages/migrate/index.js:110:1)
at Object.run (/home/philipp/.nvm/versions/node/v14.18.0/lib/node_modules/truffle/build/webpack:/packages/migrate/index.js:87:1)
at runMigrations (/home/philipp/.nvm/versions/node/v14.18.0/lib/node_modules/truffle/build/webpack:/packages/core/lib/commands/migrate.js:258:1)
at Object.run (/home/philipp/.nvm/versions/node/v14.18.0/lib/node_modules/truffle/build/webpack:/packages/core/lib/commands/migrate.js:223:1)
at Command.run (/home/philipp/.nvm/versions/node/v14.18.0/lib/node_modules/truffle/build/webpack:/packages/core/lib/command.js:183:1)
Truffle v5.4.14 (core: 5.4.14)
Node v14.18.0
➜ hello_contract-truffle git:(master) ✗
env
➜ hello_contract-truffle git:(master) ✗ node -v
v14.18.0
➜ hello_contract-truffle git:(master) ✗ which node
/home/philipp/.nvm/versions/node/v14.18.0/bin/node
➜ hello_contract-truffle git:(master) ✗ truffle version
Truffle v5.4.14 (core: 5.4.14)
Solidity v0.5.16 (solc-js)
Node v14.18.0
Web3.js v1.5.3
➜ hello_contract-truffle git:(master) ✗ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 21.04
Release: 21.04
Codename: hirsute
➜ hello_contract-truffle git:(master) ✗
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.