發表文章

目前顯示的是 8月, 2018的文章

發生 creation of ???? errored: transaction execution failed,但是又沒任何錯誤,該如何處理

圖片
用 Solidity remix 使用Javascript VM deploy 功能時發現已下錯誤時 creation of BullsAndCows pending... [vm] from: 0xca3...a733c to: BullsAndCows.(constructor) value: 0 wei data: 0x608...a0029 logs: 0 hash: 0xf18...0d95c Debug creation of BullsAndCows errored: transaction execution failed 但是compiler 都沒有錯誤,這時候通常是 合約已經寫了很長了但是 gas limt 設定太小了,我個人會在後面加上三個0 以確保是夠用的 , 反正Javascript VM 也不會損失什麼XD 設定如下