Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Commit

Permalink
add web3-types to packages/contract
Browse files Browse the repository at this point in the history
  • Loading branch information
Muhammad-Altabba committed Sep 22, 2023
1 parent 70250d8 commit df37368
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions packages/contract/lib/execute.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ const handlers = require("./handlers");
const override = require("./override");
const reformat = require("./reformat");
const { sendTransactionManual } = require("./manual-send");
const { DEFAULT_RETURN_FORMAT } = require("web3-types");

const execute = {
// ----------------------------------- Helpers --------------------------------------------------
Expand Down Expand Up @@ -569,11 +568,8 @@ const execute = {
//if we don't need the debugger, let's not risk any errors on our part,
//and just have web3 do everything
if (!promiEvent || !promiEvent.debug) {
const deferred = web3.eth.sendTransaction(
params,
DEFAULT_RETURN_FORMAT,
options
);
const returnFormat = { number: "NUMBER_BIGINT", bytes: "BYTES_HEX" }; // same as DEFAULT_RETURN_FORMAT from web3-utils
const deferred = web3.eth.sendTransaction(params, returnFormat, options);
handlers.setup(deferred, context);
return deferred;
}
Expand Down

0 comments on commit df37368

Please sign in to comment.