Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
puncsky committed Apr 21, 2019
1 parent b2c6d3f commit 830209d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 10 deletions.
5 changes: 0 additions & 5 deletions gulpfile.babel.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
const del = require("del");
const gulp = require("gulp");
const gulpLivereload = require("gulp-livereload");
const logger = require("global/console");
Expand All @@ -10,10 +9,6 @@ const log = require("fancy-log");
const less = require("gulp-less");
const webpackConfig = require("./webpack");

const clean = () => {
return del(["dist"]);
};

const watchServer = done => {
nodemon({
exec: "npm",
Expand Down
3 changes: 0 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@
"apollo-codegen": "0.20.2",
"ava": "1.1.0",
"awesome-typescript-loader": "5.2.1",
"del": "3.0.0",
"fancy-log": "1.3.3",
"glob": "7.1.3",
"gulp": "4.0.0",
Expand Down Expand Up @@ -156,8 +155,6 @@
"iotex-react-block-producers": "1.1.2",
"is-browser": "2.1.0",
"isomorphic-unfetch": "3.0.0",
"jsdom": "12.2.0",
"jsdom-global": "3.0.2",
"koa-server-http-proxy": "0.1.0",
"lodash.partition": "4.6.0",
"onefx": "1.4.4",
Expand Down
5 changes: 3 additions & 2 deletions src/shared/wallet/contract/deploy.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -198,12 +198,13 @@ class DeployFormInner extends Component<DeployProps, State> {
}

const { byteCode, amount, gasLimit, gasPrice } = value;
const trimmed0xHex = String(byteCode).replace(/^0x/, "");

window.console.log(
`antenna.iotx.deployContract(${JSON.stringify({
from: String(wallet && wallet.address),
amount: toRau(amount, "Iotx"),
data: Buffer.from(byteCode, "hex"),
data: Buffer.from(trimmed0xHex, "hex"),
gasPrice: gasPrice || undefined,
gasLimit: gasLimit || undefined
})})`
Expand All @@ -212,7 +213,7 @@ class DeployFormInner extends Component<DeployProps, State> {
const txHash = await antenna.iotx.deployContract({
from: String(wallet && wallet.address),
amount: toRau(amount, "Iotx"),
data: Buffer.from(byteCode, "hex"),
data: Buffer.from(trimmed0xHex, "hex"),
gasPrice: gasPrice || undefined,
gasLimit: gasLimit || undefined
});
Expand Down

0 comments on commit 830209d

Please sign in to comment.