Skip to content

Commit

Permalink
Merge branch '4.x' into 6187-typeerror-cannot-convert-a-bigint-value-…
Browse files Browse the repository at this point in the history
…to-a-number
  • Loading branch information
Muhammad-Altabba authored Oct 13, 2023
2 parents 85a5b37 + e760667 commit 827f28e
Showing 1 changed file with 3 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ along with web3.js. If not, see <http://www.gnu.org/licenses/>.
import Web3 from 'web3';
// eslint-disable-next-line import/no-extraneous-dependencies
import { Web3Account } from 'web3-eth-accounts';
import { EventLog } from 'web3-types';
import { Contract } from '../../../src';
import { ERC721TokenAbi, ERC721TokenBytecode } from '../../shared_fixtures/build/ERC721Token';
import { getSystemTestProvider, createLocalAccount } from '../../fixtures/system_test_utils';
Expand Down Expand Up @@ -80,8 +79,7 @@ describe('contract', () => {
tempAccount.address.toLowerCase(),
);

const logs = await contractDeployed.getPastEvents('Transfer');
const tokenId = (logs[0] as EventLog)?.returnValues?.tokenId as string;
const tokenId = awardReceipt.events?.Transfer.returnValues?.tokenId as string;

expect(
toUpperCaseHex(
Expand Down Expand Up @@ -113,8 +111,7 @@ describe('contract', () => {
tempAccount.address.toLowerCase(),
);

const logs = await contractDeployed.getPastEvents('Transfer');
const tokenId = (logs[0] as EventLog)?.returnValues?.tokenId as string;
const tokenId = awardReceipt.events?.Transfer.returnValues?.tokenId as string;
const transferFromReceipt = await contractDeployed.methods
.transferFrom(tempAccount.address, toAccount.address, tokenId)
.send({
Expand Down Expand Up @@ -186,8 +183,7 @@ describe('contract', () => {
tempAccount.address.toLowerCase(),
);

const logs = await contractDeployed.getPastEvents('Transfer');
const tokenId = (logs[0] as EventLog)?.returnValues?.tokenId as string;
const tokenId = awardReceipt.events?.Transfer.returnValues?.tokenId as string;

const approveReceipt = await contractDeployed.methods
.approve(toAccount.address, tokenId)
Expand Down

0 comments on commit 827f28e

Please sign in to comment.