Skip to content

Commit

Permalink
use type: "0x0" for ganache compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
ngmachado committed Oct 19, 2023
1 parent aff72ed commit 414cddf
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions test/utils/protocolHelper.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ async function setup(provider, agentAccount) {
const providerEthers = new ethers.JsonRpcProvider("http://127.0.0.1:8545",null,{polling: true});
const account = await providerEthers.getSigner();

const fundTx1 = {
await web3.eth.sendTransaction({
from: accounts[0],
to: account.address,
value: web3.utils.toWei("100", "ether")
}
await web3.eth.sendTransaction(fundTx1, undefined, { ignoreGasPricing: true })
value: web3.utils.toWei("100", "ether"),
type: "0x0"
});

const sf = await DeployAndLoadSuperfluidFramework(web3, account, accounts[0]);
for (const account of accounts) {
Expand All @@ -36,12 +36,12 @@ async function setup(provider, agentAccount) {
});
}

const fundTx2 = {
await web3.eth.sendTransaction({
to: agentAccount,
from: accounts[9],
value: web3.utils.toWei("10", "ether")
};
await web3.eth.sendTransaction(fundTx2, undefined, { ignoreGasPricing: true });
value: web3.utils.toWei("10", "ether"),
type: "0x0"
});
helper = {};
helper.web3 = web3;
helper.accounts = accounts;
Expand Down

0 comments on commit 414cddf

Please sign in to comment.