Skip to content

Conflux-Chain/alloy-primitives-wrapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

alloy-primitives-converter

This library defines wrapper types for alloy-primitives base types to provide convenient conversions between alloy-primitives and ethereum-types(0.9.0).

use alloy_primitives_wrapper::WU256;
use alloy_primitives::U256;
use ethereum_types as eth_types;

let a = U256::from(100);
let b: eth_types::U256 = WU256::from(a).into();

let c = eth_types::U256::from(100);
let d: U256 = WU256::from(c).into();

About

A alloy-primitives wrapper used to ease the conversion between ethereum-types

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages