Skip to content

Commit

Permalink
Add logs for total supply and initial total supply
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan-Ethernal committed Feb 22, 2024
1 parent 9fdeb11 commit 0a42736
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions e2e-polybft/e2e/consensus_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ func TestE2E_Consensus_Basic(t *testing.T) {

// check if initial total supply of native ERC20 token is the same as expected
totalSupply := queryNativeERC20Metadata(t, "totalSupply", uint256ABIType, relayer)
t.Log("Initial total supply", initialTotalSupply)
t.Log("Total supply", totalSupply)
require.True(t, initialTotalSupply.Cmp(totalSupply.(*big.Int)) == 0)

t.Run("consensus protocol", func(t *testing.T) {
Expand Down Expand Up @@ -416,6 +418,8 @@ func TestE2E_Consensus_MintableERC20NativeToken(t *testing.T) {
uint8ABIType := abi.MustNewType("tuple(uint8)")

totalSupply := queryNativeERC20Metadata(t, "totalSupply", uint256ABIType, relayer)
t.Log("Initial total supply", initialTotalSupply)
t.Log("Total supply", totalSupply)
require.True(t, initialTotalSupply.Cmp(totalSupply.(*big.Int)) == 0)

// check if initial total supply of native ERC20 token is the same as expected
Expand Down

0 comments on commit 0a42736

Please sign in to comment.