迁移用完了

时间:2019-08-17 06:56:53

标签: blockchain truffle geth

嗨,我正在使用Geth,我尝试对迁移进行松露处理,但它给出了错误。 truffle-config.js在下面:

development: {
  host: "127.0.0.1",     // Localhost (default: none)
  port: 8545,            // Standard Ethereum port (default: none)
  network_id: "4",       //rinkeby id
  from:"my address",
  gas: 1000   
 }

当我使用-truffle migration命令进行松露迁移时,会出现此错误。

 Error: Error: Error:  *** Deployment Failed ***
 "Migrations" ran out of gas (using a value you set in your network 
  config or deployment parameters.)
  * Block limit:  0x50e7c
  * Gas sent:     1000

at Object.run (/usr/local/lib/node_modules/truffle/build/webpack:/packages/truffle-migrate/index.js:92:1)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:188:7)

你能帮我吗?

1 个答案:

答案 0 :(得分:1)

这正是错误所言。 没钱了(使用您在网络中设置的值   配置或部署参数。)

gas: 1000不足以部署您的合同