New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
En 8398 tests transactions #2600
Conversation
# Conflicts: # process/transaction/export_test.go # process/transaction/shardProcess_test.go
"math" | ||
"math/big" | ||
"strconv" | ||
"testing" | ||
|
||
"github.com/ElrondNetwork/elrond-go/process/block/preprocess" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
goimports
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done.
process/transaction/export_test.go
Outdated
@@ -57,9 +58,10 @@ func (txProc *txProcessor) ProcessUserTx( | |||
|
|||
func (txProc *txProcessor) TakeMoveBalanceCostOutOfUser( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rename also this method to ProcessMoveBalanceCostRelayedUserTx
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done.
vm.TestAccount(t, testContext.Accounts, owner, 2, expectedBalance) | ||
|
||
// check accumulated fees | ||
accumulatedFee := testContext.TxFeeHandler.GetAccumulatedFees() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can search everywhere after this message: // check accumulated fees , and replace the below variable name from
accumulatedFee to accumulatedFees
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done.
# Conflicts: # integrationTests/vm/testInitializer.go # process/transaction/shardProcess_test.go
@@ -134,12 +134,12 @@ func TestMoveBalanceHigherNonceShouldNotConsumeGas(t *testing.T) { | |||
vm.TestAccount(t, testContext.Accounts, sndAddr, 0, expectedBalance) | |||
|
|||
// check accumulated fees | |||
accumulatedFee := testContext.TxFeeHandler.GetAccumulatedFees() | |||
require.Equal(t, big.NewInt(0), accumulatedFee) | |||
accumulatedFeess := testContext.TxFeeHandler.GetAccumulatedFees() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
*feess
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Added a lot of integration tests that verify if the transaction processor works as exepected.