DApp_Voting:DApp的简单示例

时间:2024-06-02 12:27:03
【文件属性】:

文件名称:DApp_Voting:DApp的简单示例

文件大小:9KB

文件格式:ZIP

更新时间:2024-06-02 12:27:03

JavaScript

Simple Voting DApp Slides Prerequisites Node.js npm How to build Initialize and install dependencies $ mkdir Voting $ cd Voting $ npm init $ npm install -g ethereumjs-testrpc http-server $ npm install solc web3@0.20.1 --save Writing contract $ code Voting.sol # Using VSCode to edit. You can use other editor of course. Voting.sol: pragma solidity ^0.4.11; // 指定 compiler 的版本 contract V


【文件预览】:
DApp_Voting-master
----index.html(1KB)
----README.md(9KB)
----deployContract.js(4KB)
----.gitignore(46B)
----index.js(1KB)
----package.json(333B)
----Voting.sol(1KB)

网友评论