WIP deploy contract using builtin ABI package

Former-commit-id: 9ff3b6dfc6fc9f5bf8278eccef6eeb6bf9cd3434 [formerly 1282951d281590f65a7d8576c0535ce27d1d31ea]
Former-commit-id: 4a0607441cecc0c617dc1deda8a3a5b1291ef763
This commit is contained in:
Preston Van Loon
2018-01-23 22:25:32 -05:00
parent c15634b962
commit 37bc466ed0
2 changed files with 48 additions and 5 deletions

View File

@@ -10,6 +10,7 @@ import (
"sync"
"testing"
ethereum "github.com/ethereum/go-ethereum"
"github.com/ethereum/go-ethereum/accounts/keystore"
"github.com/ethereum/go-ethereum/core/types"
@@ -48,6 +49,10 @@ func (s *FakeEthService) GasPrice(ctx context.Context) (*big.Int, error) {
return big.NewInt(10000), nil
}
func (s *FakeEthService) EstimateGas(ctx context.Context, msg ethereum.CallMsg) ([]byte, error) {
return hexutil.MustDecode("0x1000000000"), nil
}
func (s *FakeEthService) GetTransactionCount(ctx context.Context, address common.Address, blockNr rpc.BlockNumber) (*hexutil.Uint64, error) {
return nil, nil
}

File diff suppressed because one or more lines are too long