Skip to content

Commit

Permalink
wip: debug errors from frontier
Browse files Browse the repository at this point in the history
  • Loading branch information
vklachkov committed Jan 18, 2025
1 parent 458b6b1 commit 32891b9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion js-packages/scripts/wait_for_first_block.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ last_block_id=0
block_id=0
counter=0
function get_block {
block_id_hex=$(do_rpc chain_getHeader | jq -r .result.number)
block_id_hex=$(do_rpc chain_getHeader | tee /dev/stdout | jq -r .result.number)
block_id=$((block_id_hex))
echo Id = $block_id
}
Expand Down
6 changes: 4 additions & 2 deletions js-packages/tests/eth/nativeFungible.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,10 @@ describe('NativeFungible: ERC20 calls', () => {
const owner = await helper.eth.createAccountWithBalance(donor);
const collectionAddress = helper.ethAddress.fromCollectionId(0);
const contract = await helper.ethNativeContract.collection(collectionAddress, 'ft', owner);

const realDecimals = (await helper.chain.getChainProperties().tokenDecimals)[0].toString();
console.debug(contract);
const tokenDecimals = await helper.chain.getChainProperties().tokenDecimals;
console.debug(tokenDecimals);
const realDecimals = tokenDecimals[0].toString();
const decimals = await contract.methods.decimals().call({from: owner});
expect(decimals).to.be.eq(realDecimals);
});
Expand Down

0 comments on commit 32891b9

Please sign in to comment.