Skip to content

Commit 8907c99

Browse files
[cr138] Fixed braces around scalar initializer build error
``` ../../brave/components/brave_wallet/browser/simulation_request_helper_unittest.cc:45:67: error: braces around scalar initializer [-Werror,-Wbraced-scalar-init] 45 | is_eth_send ? std::vector<uint8_t>() : std::vector<uint8_t>({10u}), false, | ^~~~~ ```
1 parent a0a1e7c commit 8907c99

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/brave_wallet/browser/simulation_request_helper_unittest.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ mojom::TransactionInfoPtr GetCannedScanEVMTransactionParams(
4242
"0x09", "0x4a817c800", "0x5208",
4343
is_deploy_contract ? "0x" : "0x3535353535353535353535353535353535353535",
4444
"0xde0b6b3a7640000",
45-
is_eth_send ? std::vector<uint8_t>() : std::vector<uint8_t>({10u}), false,
45+
is_eth_send ? std::vector<uint8_t>() : std::vector<uint8_t>{10u}, false,
4646
std::nullopt);
4747

4848
auto tx =

0 commit comments

Comments
 (0)