Truffle
Truffle을 사용한 스마트 컨트랙트 배포
사전 준비
프로젝트 설정
npm init -ynpm install --save-dev truffle// Some codenpx truffle initnpm init -ynpm install --save-dev truffle// Some codenpx truffle init// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
contract MyContract {
// 스마트 컨트랙트 코드를 작성합니다.
}const MyContract = artifacts.require("MyContract");
module.exports = function(deployer) {
deployer.deploy(MyContract);
};npx truffle migrate --network <network-name>