13 Commits

Author SHA1 Message Date
emizzle
2f188337c8 Small fixes
Fixed issue with contract deploying for first time and having no gasLimit specified.

Optimised/refactored looping of compiled contracts.

Added body parameter type checking for `/embark-api/contract/deploy` endpoint
2018-08-31 15:10:18 +10:00
emizzle
f92d18d624 Fiddle use cases fixed
Handle use cases:

1) handle case when temp.sol doesn’t exist - due to the new saga updates, the response from retreiving a temp fiddle from the filesystem (even if it doesn’t exist) is forward to the compilation endpoint, which returns an ENOENT, and this is handled in the selector.
2) delete all code - shouldn’t return last fiddle and should compile an empty string.
3) Switch to different tab (ie contracts) then back to fiddle - previous fiddle should remain.

Also fixed an issue (most likely due to latest rebase) when deploying fiddle contracts. The gasLimit was not being specified.

Handled issue where entities stored in the state were not being put in the correct order, so a timestamp was sent with the requests and then sorted when the response was returned.
2018-08-30 21:15:28 +10:00
Jonathan Rainville
03a9edc8b5 fix the indexOf instead by simulating what solc does 2018-08-22 19:17:09 -04:00
Jonathan Rainville
8dff1383c8 fix duplicate dependencies and warn correctly for length 2018-08-22 19:17:09 -04:00
Jonathan Rainville
715896089a fix the indexOf instead by simulating what solc does 2018-08-21 17:23:24 -04:00
Jonathan Rainville
202bb7a768 fix duplicate dependencies and warn correctly for length 2018-08-21 17:23:24 -04:00
Anthony Laibe
a7b0cea09b Console via IPC do not run on deploy 2018-08-21 16:10:22 -04:00
Jonathan Rainville
8f3a42b926 catch $accounts in contract config 2018-08-21 16:09:49 -04:00
Andre Medeiros
8e396a17d8 Progress 2018-08-21 16:09:13 -04:00
Jonathan Rainville
2edd45ef55 set log function as trace if silent for contract deployer 2018-08-21 16:07:58 -04:00
hodlbank
c782f9b0a8 Enabling contract:deploy:beforeDeploy plugins to access deploymentAccount value by adding it into the contract object. 2018-08-21 16:05:59 -04:00
Iuri Matias
567b0c75b8 get blockchain object from event bus 2018-08-21 16:04:22 -04:00
Iuri Matias
f9321776b1 move deployment to module 2018-08-21 16:03:35 -04:00