Skip to content

Commit 3b34f23

Browse files
committed
commit Cargo.lock
1 parent 1848695 commit 3b34f23

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

precompiles/src/proxy.rs

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -255,12 +255,13 @@ where
255255
for proxy in proxies.0 {
256256
let delegate: [u8; 32] = proxy.delegate.into();
257257

258-
let proxy_type: u8 = proxy
259-
.proxy_type
260-
.into()
261-
.map_err(|_| PrecompileFailure::Error {
262-
exit_status: ExitError::Other("Invalid proxy type".into()),
263-
})?;
258+
let proxy_type: u8 =
259+
proxy
260+
.proxy_type
261+
.try_into()
262+
.map_err(|_| PrecompileFailure::Error {
263+
exit_status: ExitError::Other("Invalid proxy type".into()),
264+
})?;
264265
let delay: u32 = proxy
265266
.delay
266267
.try_into()

0 commit comments

Comments
 (0)