Skip to content
This repository was archived by the owner on Jan 24, 2025. It is now read-only.

Commit aa6a228

Browse files
committed
Check errors and renaming
1 parent 3e2aae4 commit aa6a228

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

pkg/tests/combined_account_transition_test.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -56,15 +56,15 @@ func Test_AccountStateTransition(t *testing.T) {
5656
// create the account2, from implicit to full account from TX1:1 with wallet "second"
5757
// generated (block2, TX3), (block3, TX4)
5858
ts.AddWallet("second", node1, iotago.EmptyAccountID)
59-
implicitAccID := createImplicitToFullAccount(ts)
59+
account2ID := createImplicitToFullAccount(ts)
6060

6161
// send funds to account2, with TX1:2
6262
// generated (block4, TX5)
63-
sendfunds(ts)
63+
sendFunds(ts)
6464

6565
// allot 1000 mana to account2 with TX1:3
6666
// generated (block5, TX6)
67-
allotManaTo(ts, implicitAccID)
67+
allotManaTo(ts, account2ID)
6868

6969
// create native token from "TX5:0" and account2 (TX4:0)
7070
// generated (block6, TX7)
@@ -200,7 +200,7 @@ func createImplicitToFullAccount(ts *testsuite.TestSuite) iotago.AccountID {
200200
return implicitAccountID
201201
}
202202

203-
func sendfunds(ts *testsuite.TestSuite) {
203+
func sendFunds(ts *testsuite.TestSuite) {
204204
node1 := ts.Node("node1")
205205
node2 := ts.Node("node2")
206206
wallet := ts.DefaultWallet()

pkg/testsuite/mock/wallet_transactions.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -677,7 +677,7 @@ func (w *Wallet) CreateNativeTokenFromInput(transactionName string, inputName st
677677
accTransitionOutput := builder.NewAccountOutputBuilderFromPrevious(accountOutput.Output().(*iotago.AccountOutput)).
678678
FoundriesToGenerate(1).MustBuild()
679679

680-
// build foundry output, consume all amount from the UTXO output
680+
// build foundry output
681681
foundryID, _ := iotago.FoundryIDFromAddressAndSerialNumberAndTokenScheme(accAddr, accTransitionOutput.FoundryCounter, iotago.TokenSchemeSimple)
682682
tokenScheme := &iotago.SimpleTokenScheme{
683683
MintedTokens: big.NewInt(int64(mintedAmount)),

tools/docker-network/tests/dockerframework.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,8 @@ func (d *DockerTestFramework) CreateNativeToken(from *Account) (updatedAccount *
501501
FoundriesToGenerate(1).MustBuild()
502502

503503
// build foundry output, consume all amount from the UTXO output
504-
foundryID, _ := iotago.FoundryIDFromAddressAndSerialNumberAndTokenScheme(from.AccountAddress, accTransitionOutput.FoundryCounter, iotago.TokenSchemeSimple)
504+
foundryID, err := iotago.FoundryIDFromAddressAndSerialNumberAndTokenScheme(from.AccountAddress, accTransitionOutput.FoundryCounter, iotago.TokenSchemeSimple)
505+
require.NoError(d.Testing, err)
505506
tokenScheme := &iotago.SimpleTokenScheme{
506507
MintedTokens: big.NewInt(int64(mintedAmount)),
507508
MaximumSupply: big.NewInt(int64(mintedAmount)),

0 commit comments

Comments
 (0)