목록이 있고 항목을 설정할 수 있고 목록을 얻을 수있는 간단한 스마트 계약을 만들고 싶습니다. 견고 함에서 코드 : contract lister {
mapping(int => string) list;
int id = 0;
function getList() returns (/*HERE*/) {
return list;
매핑에서 동일한 키 아래에 여러 값을 가질 수 있어야합니다. 오늘날 Solidity의 매핑은 단일 값입니다. 값을 쓰는 것은 이전 값을 덮어 씁니다 (여전히 블록 체인에 있지만 계약으로 검색 할 수는 없습니다). contract MVM {
struct Bucket {
bool exists;
uint num; // Never de
struct buyer{
uint amount;
Status status;
}
mapping(address=>buyer) public buyers;
mapping(uint=>address) buyerIndex;
uint public buyerNum;
//Order a product.
Ethereum GitHub 커미터를 커밋 할 시간을 백분율로 정렬 할 수 있습니까? https://github.com/ethereum/pyethereum https://github.com/ethereum/remix https://github.com/ethereum/solidity https://github.com/ethereum/dapp-bin https
우분투에 Solidity 컴파일러 (solc)를 설치했습니다. solc을 Geth에 연결할 수 없습니다. 어떻게 할 수 있습니까? 다음과 같이 sudo add-apt-repository ppa:ethereum/ethereum
sudo apt-get update
sudo apt-get install solc
이 표시됩니다 : 아래는 내가 수행 한 단계