From 9187d2e847440c5c099f44f92d4676c22d60c92d Mon Sep 17 00:00:00 2001 From: Tiago Carvalho Date: Sun, 9 Jul 2023 22:16:03 +0100 Subject: [PATCH] Call try_into() instead of into() on EthBridgeVotingPower --- core/src/types/eth_abi.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/types/eth_abi.rs b/core/src/types/eth_abi.rs index 5beaa6fe8f..adda87e6c9 100644 --- a/core/src/types/eth_abi.rs +++ b/core/src/types/eth_abi.rs @@ -198,7 +198,7 @@ mod tests { ) .expect("Test failed"), ], - voting_powers: vec![8828299.into()], + voting_powers: vec![8828299.try_into().unwrap()], epoch: 0.into(), }; let encoded = valset_update.encode().into_inner();