Post Byzantium,当我测试合同函数时,有些(1)返回带有status字段的事务对象/收据,而另一些(2)失败并恢复。assert(txReceipt.receipt.status === 0)contract.someMethodThatWillFail(params) () => assert.throw('should not have reached here'),
e => assert.isAtLeast(e.message.indexOf('revert'
试图在数据库中创建一个用户,它告诉我cannot execute **** in a read-only transaction。我不知道这是怎么回事?这是数据库或连接中的一个坏状态吗?为什么这说明它不是在一个事务中,而是告诉我它是一个只读事务?“事务”指的是同一件事吗?psql (10.1, server 9.4.13)
SSL connection (protocol: TLSv1.2, ciphe