Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- ERC165
- Programming
- tcp
- JavaScript
- solidity
- truffle
- erc
- server
- 제어의역전
- NFT
- git
- 트랜잭션
- web
- github
- erc721
- ERC20
- 블록체인
- web3.js
- Ethereum
- 스마트 컨트랙트
- 이더리움
- ethers
- blockchain
- 솔리디티
- Python
- geth
- web3
- MySQL
- Docker
- 네트워크
Archives
- Today
- Total
목록String (1)
멍개의 연구소
[ethereum] solidity에서 bytes32에서 string으로 변환
function bytes32ToString(bytes32 x) constant returns (string) { bytes memory bytesString = new bytes(32); uint charCount = 0; for (uint j = 0; j < 32; j++) { byte char = byte(bytes32(uint(x) * 2 ** (8 * j))); if (char != 0) { bytesString[charCount] = char; charCount++; } } bytes memory bytesStringTrimmed = new bytes(charCount); for (j = 0; j < charCount; j++) { bytesStringTrimmed[j] = bytesStrin..
블록체인
2022. 8. 27. 15:51