Chore: Fix default values (#4960)
This commit is contained in:
parent
c7e7445f5c
commit
296b44f9ab
|
@ -93,8 +93,6 @@ func defaultSettings(generatedAccountInfo generator.GeneratedAccountInfo, derive
|
|||
s.TokenGroupByCommunity = false
|
||||
s.ShowCommunityAssetWhenSendingTokens = true
|
||||
s.DisplayAssetsBelowBalance = false
|
||||
// NOTE 9 decimals of precision. Default value is translated to 0.1
|
||||
s.DisplayAssetsBelowBalanceThreshold = 100000000
|
||||
|
||||
return s, nil
|
||||
}
|
||||
|
|
|
@ -145,14 +145,11 @@ INSERT INTO settings (
|
|||
omit_transfers_history_scan,
|
||||
mnemonic_was_not_shown,
|
||||
wallet_token_preferences_group_by_community,
|
||||
wallet_show_community_asset_when_sending_tokens,
|
||||
wallet_display_assets_below_balance,
|
||||
wallet_display_assets_below_balance_threshold,
|
||||
wallet_collectible_preferences_group_by_collection,
|
||||
wallet_collectible_preferences_group_by_community
|
||||
) VALUES (
|
||||
?,?,?,?,?,?,?,?,?,?,?,?,?,?,
|
||||
?,?,?,?,?,?,?,?,?,'id',?,?,?,?,?,?,?,?,?,?,?,?)`,
|
||||
?,?,?,?,?,?,?,?,?,'id',?,?,?,?,?,?,?,?,?)`,
|
||||
s.Address,
|
||||
s.Currency,
|
||||
s.CurrentNetwork,
|
||||
|
@ -183,9 +180,6 @@ INSERT INTO settings (
|
|||
s.OmitTransfersHistoryScan,
|
||||
s.MnemonicWasNotShown,
|
||||
s.TokenGroupByCommunity,
|
||||
s.ShowCommunityAssetWhenSendingTokens,
|
||||
s.DisplayAssetsBelowBalance,
|
||||
s.DisplayAssetsBelowBalanceThreshold,
|
||||
s.CollectibleGroupByCollection,
|
||||
s.CollectibleGroupByCommunity,
|
||||
)
|
||||
|
|
|
@ -44,7 +44,10 @@ var (
|
|||
UseMailservers: true,
|
||||
LinkPreviewRequestEnabled: true,
|
||||
SendStatusUpdates: true,
|
||||
WalletRootAddress: types.HexToAddress("0x3B591fd819F86D0A6a2EF2Bcb94f77807a7De1a6")}
|
||||
WalletRootAddress: types.HexToAddress("0x3B591fd819F86D0A6a2EF2Bcb94f77807a7De1a6"),
|
||||
DisplayAssetsBelowBalanceThreshold: int64(100000000),
|
||||
DisplayAssetsBelowBalance: false,
|
||||
ShowCommunityAssetWhenSendingTokens: true}
|
||||
)
|
||||
|
||||
func setupTestDB(t *testing.T) (*Database, func()) {
|
||||
|
|
Loading…
Reference in New Issue