Commit a58c6c24 authored by QM's avatar QM Committed by vipwzw

fix unit test

parent 863558f3
...@@ -25,7 +25,7 @@ func PrepareTestEnv() (*ethinterface.SimExtend, *ethtxs.DeployPara) { ...@@ -25,7 +25,7 @@ func PrepareTestEnv() (*ethinterface.SimExtend, *ethtxs.DeployPara) {
alloc := make(core.GenesisAlloc) alloc := make(core.GenesisAlloc)
genesisAddr := crypto.PubkeyToAddress(genesiskey.PublicKey) genesisAddr := crypto.PubkeyToAddress(genesiskey.PublicKey)
genesisAccount := core.GenesisAccount{ genesisAccount := core.GenesisAccount{
Balance: big.NewInt(10000000000 * 10000), Balance: big.NewInt(1000000000000 * 10000),
PrivateKey: crypto.FromECDSA(genesiskey), PrivateKey: crypto.FromECDSA(genesiskey),
} }
alloc[genesisAddr] = genesisAccount alloc[genesisAddr] = genesisAccount
...@@ -39,7 +39,7 @@ func PrepareTestEnv() (*ethinterface.SimExtend, *ethtxs.DeployPara) { ...@@ -39,7 +39,7 @@ func PrepareTestEnv() (*ethinterface.SimExtend, *ethtxs.DeployPara) {
ValidatorPriKey = append(ValidatorPriKey, key) ValidatorPriKey = append(ValidatorPriKey, key)
account := core.GenesisAccount{ account := core.GenesisAccount{
Balance: big.NewInt(100000000 * 100000000), Balance: big.NewInt(1000000000000 * 10000),
PrivateKey: crypto.FromECDSA(key), PrivateKey: crypto.FromECDSA(key),
} }
alloc[addr] = account alloc[addr] = account
......
...@@ -232,7 +232,7 @@ func PrepareTestEnv() (*ethinterface.SimExtend, *DeployPara) { ...@@ -232,7 +232,7 @@ func PrepareTestEnv() (*ethinterface.SimExtend, *DeployPara) {
alloc := make(core.GenesisAlloc) alloc := make(core.GenesisAlloc)
genesisAddr := crypto.PubkeyToAddress(genesiskey.PublicKey) genesisAddr := crypto.PubkeyToAddress(genesiskey.PublicKey)
genesisAccount := core.GenesisAccount{ genesisAccount := core.GenesisAccount{
Balance: big.NewInt(10000000000 * 10000), Balance: big.NewInt(1000000000000 * 10000),
PrivateKey: crypto.FromECDSA(genesiskey), PrivateKey: crypto.FromECDSA(genesiskey),
} }
alloc[genesisAddr] = genesisAccount alloc[genesisAddr] = genesisAccount
...@@ -246,7 +246,7 @@ func PrepareTestEnv() (*ethinterface.SimExtend, *DeployPara) { ...@@ -246,7 +246,7 @@ func PrepareTestEnv() (*ethinterface.SimExtend, *DeployPara) {
ValidatorPriKey = append(ValidatorPriKey, key) ValidatorPriKey = append(ValidatorPriKey, key)
account := core.GenesisAccount{ account := core.GenesisAccount{
Balance: big.NewInt(100000000 * 100000000), Balance: big.NewInt(1000000000000 * 10000),
PrivateKey: crypto.FromECDSA(key), PrivateKey: crypto.FromECDSA(key),
} }
alloc[addr] = account alloc[addr] = account
......
...@@ -49,7 +49,7 @@ func Test_GetAddressFromBridgeRegistry(t *testing.T) { ...@@ -49,7 +49,7 @@ func Test_GetAddressFromBridgeRegistry(t *testing.T) {
alloc := make(core.GenesisAlloc) alloc := make(core.GenesisAlloc)
genesisAddr := crypto.PubkeyToAddress(genesiskey.PublicKey) genesisAddr := crypto.PubkeyToAddress(genesiskey.PublicKey)
genesisAccount := core.GenesisAccount{ genesisAccount := core.GenesisAccount{
Balance: big.NewInt(10000000000 * 100000000), Balance: big.NewInt(1000000000000 * 10000),
PrivateKey: crypto.FromECDSA(genesiskey), PrivateKey: crypto.FromECDSA(genesiskey),
} }
alloc[genesisAddr] = genesisAccount alloc[genesisAddr] = genesisAccount
...@@ -138,7 +138,7 @@ func PrepareTestEnvironment(deployerPrivateKey string, ethValidatorAddrKeys []st ...@@ -138,7 +138,7 @@ func PrepareTestEnvironment(deployerPrivateKey string, ethValidatorAddrKeys []st
alloc := make(core.GenesisAlloc) alloc := make(core.GenesisAlloc)
genesisAddr := crypto.PubkeyToAddress(genesiskey.PublicKey) genesisAddr := crypto.PubkeyToAddress(genesiskey.PublicKey)
genesisAccount := core.GenesisAccount{ genesisAccount := core.GenesisAccount{
Balance: big.NewInt(10000000000 * 10000), Balance: big.NewInt(1000000000000 * 10000),
PrivateKey: crypto.FromECDSA(genesiskey), PrivateKey: crypto.FromECDSA(genesiskey),
} }
alloc[genesisAddr] = genesisAccount alloc[genesisAddr] = genesisAccount
...@@ -152,7 +152,7 @@ func PrepareTestEnvironment(deployerPrivateKey string, ethValidatorAddrKeys []st ...@@ -152,7 +152,7 @@ func PrepareTestEnvironment(deployerPrivateKey string, ethValidatorAddrKeys []st
ValidatorPriKey = append(ValidatorPriKey, key) ValidatorPriKey = append(ValidatorPriKey, key)
account := core.GenesisAccount{ account := core.GenesisAccount{
Balance: big.NewInt(100000000 * 100000000), Balance: big.NewInt(1000000000000 * 10000),
PrivateKey: crypto.FromECDSA(key), PrivateKey: crypto.FromECDSA(key),
} }
alloc[addr] = account alloc[addr] = account
......
...@@ -22,7 +22,7 @@ func PrepareTestEnv() (*ethinterface.SimExtend, *ethtxs.DeployPara) { ...@@ -22,7 +22,7 @@ func PrepareTestEnv() (*ethinterface.SimExtend, *ethtxs.DeployPara) {
alloc := make(core.GenesisAlloc) alloc := make(core.GenesisAlloc)
genesisAddr := crypto.PubkeyToAddress(genesiskey.PublicKey) genesisAddr := crypto.PubkeyToAddress(genesiskey.PublicKey)
genesisAccount := core.GenesisAccount{ genesisAccount := core.GenesisAccount{
Balance: big.NewInt(10000000000 * 10000), Balance: big.NewInt(1000000000000 * 10000),
PrivateKey: crypto.FromECDSA(genesiskey), PrivateKey: crypto.FromECDSA(genesiskey),
} }
alloc[genesisAddr] = genesisAccount alloc[genesisAddr] = genesisAccount
...@@ -36,7 +36,7 @@ func PrepareTestEnv() (*ethinterface.SimExtend, *ethtxs.DeployPara) { ...@@ -36,7 +36,7 @@ func PrepareTestEnv() (*ethinterface.SimExtend, *ethtxs.DeployPara) {
ValidatorPriKey = append(ValidatorPriKey, key) ValidatorPriKey = append(ValidatorPriKey, key)
account := core.GenesisAccount{ account := core.GenesisAccount{
Balance: big.NewInt(100000000 * 100), Balance: big.NewInt(1000000000000 * 10000),
PrivateKey: crypto.FromECDSA(key), PrivateKey: crypto.FromECDSA(key),
} }
alloc[addr] = account alloc[addr] = account
...@@ -64,7 +64,7 @@ func PrepareTestEnvironment(deployerPrivateKey string, ethValidatorAddrKeys []st ...@@ -64,7 +64,7 @@ func PrepareTestEnvironment(deployerPrivateKey string, ethValidatorAddrKeys []st
alloc := make(core.GenesisAlloc) alloc := make(core.GenesisAlloc)
genesisAddr := crypto.PubkeyToAddress(genesiskey.PublicKey) genesisAddr := crypto.PubkeyToAddress(genesiskey.PublicKey)
genesisAccount := core.GenesisAccount{ genesisAccount := core.GenesisAccount{
Balance: big.NewInt(10000000000 * 10000), Balance: big.NewInt(1000000000000 * 10000),
PrivateKey: crypto.FromECDSA(genesiskey), PrivateKey: crypto.FromECDSA(genesiskey),
} }
alloc[genesisAddr] = genesisAccount alloc[genesisAddr] = genesisAccount
...@@ -78,7 +78,7 @@ func PrepareTestEnvironment(deployerPrivateKey string, ethValidatorAddrKeys []st ...@@ -78,7 +78,7 @@ func PrepareTestEnvironment(deployerPrivateKey string, ethValidatorAddrKeys []st
ValidatorPriKey = append(ValidatorPriKey, key) ValidatorPriKey = append(ValidatorPriKey, key)
account := core.GenesisAccount{ account := core.GenesisAccount{
Balance: big.NewInt(100000000 * 100), Balance: big.NewInt(1000000000000 * 10000),
PrivateKey: crypto.FromECDSA(key), PrivateKey: crypto.FromECDSA(key),
} }
alloc[addr] = account alloc[addr] = account
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment