LoginSignup
0

More than 3 years have passed since last update.

Azure Blockchain Serviceのチェーンにtruffle deployしたらエラーが発生

Last updated at Posted at 2019-09-03

事象

Azure Blockchain Serviceのチェーンに対して、truffle deployした際にエラーが発生(2019/09/03)

$ yarn truffle deploy --reset
yarn run v1.16.0
$ /workspace/example/node_modules/.bin/truffle deploy --reset

Compiling your contracts...
===========================
> Everything is up to date, there is nothing to compile.


Starting migrations...
======================
> Network name:    'development'
> Network id:      1403
> Block gas limit: 0x29b92700


1_initial_migration.js
======================

   Deploying 'Migrations'
   ----------------------
   > transaction hash:    0xdd8253a9f0052e0e94672591a0d377885c4c60b8bf6f4f5d80b5ade88e65ef0b
   > Blocks: 1            Seconds: 4
   > contract address:    0x64f5dEBd06144F83C6f081d1b838bab6434E1F97
   > block number:        70323
   > block timestamp:     1567507557
   > account:             0x489c419eDD8D03cDeDBf6Fb5a7882C9357351EA7
   > balance:             0
   > gas used:            261393
   > gas price:           0 gwei
   > value sent:          0 ETH
   > total cost:          0 ETH


   ⠙ Saving migration to chain.Error: Error: StatusError: Transaction: 0xff9173a50c95373b2a4ddda74c01f4d561fd49baa1a055612d1af64996f52f8c exited with an error (status 0) after consuming all gas.
     Please check that the transaction:
     - satisfies all conditions set by Solidity `assert` statements.
     - has enough gas to execute the full transaction.
     - does not trigger an invalid opcode by other means (ex: accessing an array out of bounds).
    at Object.run (/workspace/example/node_modules/truffle/build/webpack:/packages/truffle-migrate/index.js:92:1)
    at processTicksAndRejections (internal/process/task_queues.js:89:5)
Truffle v5.0.34 (core: 5.0.34)
Node v12.4.0
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this comman

Migrationsコントラクトに対するトランザクションで失敗した様子

使用したTruffleのバージョン

Truffle v5.0.34 (core: 5.0.34)
Solidity v0.5.8 (solc-js)
Node v12.4.0
Web3.js v1.2.1

解決策

Truffleのバージョンを下記に下げたら解消した

Truffle v5.0.5 (core: 5.0.5)
Solidity v0.5.0 (solc-js)
Node v12.4.0
pragma solidity 0.5.0;

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0