amory1997
amory1997
the icon is pining at https://web3.storage the ipfs linking is [ipfs gateway for the icon of qkacoin.png](https://ipfs.io/ipfs/bafkreiea5sbl37xxlmq4gxhdz36ohvpmnelug6gqobswnszwbz2gu3i7wi ) please check out if everything is fine
solc 版本 : 0.8.16+commit.07a7930e.Linux.g++ Vault.sol 中的版本也已经改成了 0.8.16 编译命令:`solc --optimize --combined-json abi,bin,interface Vault.sol` 报错内容:`Invalid option to --combined-json: interface` 自己的解决办法:删除编译命令中的 interface 选项 得到的结果: ``` Warning: SPDX license identifier not provided in source...
请问下,这个重排是怎么实现的 出处:[](https://ethbook.abyteahead.com/ch6/compile.html ) `var output = {"contracts":{"Vault.sol:Vault":{"abi":"[{\"constant\":false,\"inputs\":[{\"name\":\"data\",\"type\":\"uint256\"}],\"name\":\"set\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"get\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"}]","bin":"608060405234801561001057600080fd5b5060bf8061001f6000396000f30060806040526004361060485763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166360fe47b18114604d5780636d4ce63c146064575b600080fd5b348015605857600080fd5b5060626004356088565b005b348015606f57600080fd5b506076608d565b60408051918252519081900360200190f35b600055565b600054905600a165627a7a723058203269ba0a634bf05e2a15966872aaa719b6d147aaa419d656374ad860104e6ef40029"}},"version":"0.4.24+commit.e67f0147.Darwin.appleclang"}` 目标:实现教材中那样对编译结果的重排 实际结果: Command 'var' not found, but there are 18 similar ones. 具体操作: 在系统终端直接输入 `var output = {"contracts":{"Vault.sol:Vault":{"abi":"[{\"constant\":false,\"inputs\":[{\"name\":\"data\",\"type\":\"uint256\"}],\"name\":\"set\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"get\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"}]","bin":"608060405234801561001057600080fd5b5060bf8061001f6000396000f30060806040526004361060485763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166360fe47b18114604d5780636d4ce63c146064575b600080fd5b348015605857600080fd5b5060626004356088565b005b348015606f57600080fd5b506076608d565b60408051918252519081900360200190f35b600055565b600054905600a165627a7a723058203269ba0a634bf05e2a15966872aaa719b6d147aaa419d656374ad860104e6ef40029"}},"version":"0.4.24+commit.e67f0147.Darwin.appleclang"} ` 系统: ubuntu 18.04 solc...