Home

ganache-cli problem

Truffle|xxx Token has not been deployed to detected network (network/artifact mismatch) Description I’m testing one contract today with truffle console, and at the beginning I was running truffle test to test the contract. However, for some reason, I shifted to truffle console method. And I got the error above. Solutions on line I looked up many...

Read more

Truffle version

Truffle version Background Met with one problem today, when using truffle, there are some conflicts with the solc version. Migration.sol pragma solidity >=0.4.21 <0.6.0; Contract_code.sol pragma solidity 0.4.19; solc version 0.4.24 truffle-config.js module.exports = {networks: {development: {host: "127.0.0.1", port: 8545, network_i...

Read more

Expecting property name enclosed in double quotes

Expecting property name enclosed in double quotes Background In this project, I have to dump json file and open this json file in a loop. At first, I looked up some blogs on the internet, most of them talks about the misuse of quotes and double quotes, I checked my code, I found all of the keys in the dictionary used quotes instead of double q...

Read more

CSV超过限制行数

CSV问题 背景 需要处理一个10w余行的csv文件,其中存在大量的文本信息,文本信息本身也比较大。有一些粘贴的邮件内容。csv文件是,分割,然而邮件中有大量的,和双引号。 问题描述   遇到了一个超级让人头大的问题,csv的行数超过了numbers的限制行数,且表格中存在双引号的使用问题。CSV实际上是用逗号来分隔不同的数据的,但是由于在正常的文本里面存在了双引号,这个双引号会和整个文本的外边引号结合,因此逗号就会暴露在外面。所以需要将单个双引号的使用改成两个双引号。比如: "这是一句话" 要修改成 ""这是一句话""   实际操作表明,用numbers修改挺方便的,就是修改过后会丢个几万行。(最后只会保留65535行)这个时候就想起来了Excel,但是用Excel打开,又出现了大...

Read more

Ether crawler

crawler connection problem etherscan crawler     I’ve written this crawler to collect some contracts information from etherscan. However, a few months later, I can’t access this website anymore. At first I thought that’s because I’ve got too much information from this website, so I’m banned from this website. However, even if my ip has adjuste...

Read more

Mac catalina mysql

Mac catalina mysql 问题梳理 首先是maven项目里面的jetty:run无法连接,显示 向上查错,发现是数据库的连接出现了错误。 brew install mysql 经过查错,发现是mysql.server start之后,随即会被关闭。因为某些原因放弃了使用brew install下载的mysql,转到官网下载mysql。 网站安装 mysql显示 从网站上面安装下来的mysql会在系统偏好设置中显示。 在这里面尝试会发现,的确是开启了之后会短暂的连接,随后就会断开 initialize database里面有两个选项 这里面选择了legacy password,因为如果选择strong password的话,在连接workbench的时候会连接不上。 ...

Read more