forked from cerc-io/laconicd-deprecated
fix account sending from new accounts (#517)
* fix account sending from new accounts * cleanup * more cleanup * fix rpc tests Co-authored-by: araskachoi <choidanielw@gmail.com>
This commit is contained in:
@@ -20,7 +20,7 @@ func TestPersonal_ListAccounts(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestPersonal_NewAccount(t *testing.T) {
|
||||
rpcRes := call(t, "personal_newAccount", []string{""})
|
||||
rpcRes := call(t, "personal_newAccount", []string{"password"})
|
||||
var addr common.Address
|
||||
err := json.Unmarshal(rpcRes.Result, &addr)
|
||||
require.NoError(t, err)
|
||||
|
||||
+1
-1
@@ -758,7 +758,7 @@ func TestEth_EstimateGas(t *testing.T) {
|
||||
err := json.Unmarshal(rpcRes.Result, &gas)
|
||||
require.NoError(t, err, string(rpcRes.Result))
|
||||
|
||||
require.Equal(t, "0xef7e", gas)
|
||||
require.Equal(t, "0xf552", gas)
|
||||
}
|
||||
|
||||
func TestEth_EstimateGas_ContractDeployment(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user