mirror of
				https://github.com/0glabs/0g-chain.git
				synced 2025-11-04 00:27:41 +00:00 
			
		
		
		
	* rename cosmos-sdk specific signers
* add evm_signer util
* add utilities for converting between addresses
* rename signers
* dont include e2e tests in docker image
* add evmsigner to e2e SigningAccount
* add new whale account that is an EthAccount
* use ethsecp256k1 for e2e SigningAccounts
* wait for evm tx to be committed to block
also add example evm tx tests! 🎉
* check remainined balance is expected
* check balance via evm
		
	
			
		
			
				
	
	
		
			15 lines
		
	
	
		
			314 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			314 B
		
	
	
	
		
			Go
		
	
	
	
	
	
package util
 | 
						|
 | 
						|
import (
 | 
						|
	sdk "github.com/cosmos/cosmos-sdk/types"
 | 
						|
	"github.com/ethereum/go-ethereum/common"
 | 
						|
)
 | 
						|
 | 
						|
func SdkToEvmAddress(addr sdk.AccAddress) common.Address {
 | 
						|
	return common.BytesToAddress(addr.Bytes())
 | 
						|
}
 | 
						|
 | 
						|
func EvmToSdkAddress(addr common.Address) sdk.AccAddress {
 | 
						|
	return sdk.AccAddress(addr.Bytes())
 | 
						|
}
 |