Skip to content

Commit 5b2c9eb

Browse files
committed
chore: clean up
1 parent 59137cc commit 5b2c9eb

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

framework/components/blockchain/ton.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,11 @@ const (
2222
DefaultTonSimpleServerPort = "8000"
2323
DefaultTonTONExplorerPort = "8080"
2424
DefaultTonLiteServerPort = "40004"
25-
)
2625

27-
var (
2826
// NOTE: Prefunded high-load wallet from MyLocalTon pre-funded wallet, that can send up to 254 messages per 1 external message
2927
// https://docs.ton.org/v3/documentation/smart-contracts/contracts-specs/highload-wallet#highload-wallet-v2
3028
DefaultTonHlWalletAddress = "-1:5ee77ced0b7ae6ef88ab3f4350d8872c64667ffbe76073455215d3cdfab3294b"
3129
DefaultTonHlWalletMnemonic = "twenty unfair stay entry during please water april fabric morning length lumber style tomorrow melody similar forum width ride render void rather custom coin"
32-
DefaultTonHlWalletSubID = uint32(42)
33-
DefaultTonHlWalletType = 123 // wallet.HighloadV2Verified
3430
)
3531

3632
func defaultTon(in *Input) {

framework/examples/myproject/smoke_ton_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,11 @@ func TestTonSmoke(t *testing.T) {
3737

3838
t.Run("setup:faucet", func(t *testing.T) {
3939
// network is already funded
40-
rawHlWallet, err := wallet.FromSeed(client, strings.Fields(blockchain.DefaultTonHlWalletMnemonic), blockchain.DefaultTonHlWalletType)
40+
rawHlWallet, err := wallet.FromSeed(client, strings.Fields(blockchain.DefaultTonHlWalletMnemonic), wallet.HighloadV2Verified)
4141
require.NoError(t, err, "failed to create highload wallet")
42-
mcFunderWallet, err := wallet.FromPrivateKeyWithOptions(client, rawHlWallet.PrivateKey(), blockchain.DefaultTonHlWalletType, wallet.WithWorkchain(-1))
42+
mcFunderWallet, err := wallet.FromPrivateKeyWithOptions(client, rawHlWallet.PrivateKey(), wallet.HighloadV2Verified, wallet.WithWorkchain(-1))
4343
require.NoError(t, err, "failed to create highload wallet")
44-
funder, err := mcFunderWallet.GetSubwallet(blockchain.DefaultTonHlWalletSubID)
44+
funder, err := mcFunderWallet.GetSubwallet(uint32(42))
4545
require.NoError(t, err, "failed to get highload subwallet")
4646
require.Equal(t, funder.Address().StringRaw(), blockchain.DefaultTonHlWalletAddress, "funder address mismatch")
4747

0 commit comments

Comments
 (0)