sharding: s/CreateTXOps/CreateTXOpts/g

Former-commit-id: 72f0620c7de05caf26bc6316b886d7ee063b45aa [formerly 7adad0ddfad8bc2555579a1bf5bdf46bb8d575ec]
Former-commit-id: 127e5f89dd4fda27f84bf626c30de86551392bab
This commit is contained in:
Preston Van Loon 2018-04-02 22:26:29 -04:00
parent b7cdcfada5
commit 8d01b0518a
3 changed files with 6 additions and 6 deletions

View File

@ -47,7 +47,7 @@ type shardingClient struct {
type Client interface {
Start() error
Close()
CreateTXOps(*big.Int) (*bind.TransactOpts, error)
CreateTXOpts(*big.Int) (*bind.TransactOpts, error)
ChainReader() ethereum.ChainReader
Account() *accounts.Account
SMCCaller() *contracts.SMCCaller
@ -145,8 +145,8 @@ func (c *shardingClient) unlockAccount(account accounts.Account) error {
return c.keystore.Unlock(account, pass)
}
// CreateTXOps creates a *TransactOpts with a signer using the default account on the keystore.
func (c *shardingClient) CreateTXOps(value *big.Int) (*bind.TransactOpts, error) {
// CreateTXOpts creates a *TransactOpts with a signer using the default account on the keystore.
func (c *shardingClient) CreateTXOpts(value *big.Int) (*bind.TransactOpts, error) {
account := c.Account()
return &bind.TransactOpts{
@ -210,7 +210,7 @@ func initSMC(c *shardingClient) (*contracts.SMC, error) {
if len(b) == 0 {
log.Info(fmt.Sprintf("No sharding manager contract found at %s. Deploying new contract.", sharding.ShardingManagerAddress.String()))
txOps, err := c.CreateTXOps(big.NewInt(0))
txOps, err := c.CreateTXOpts(big.NewInt(0))
if err != nil {
return nil, fmt.Errorf("unable to intiate the transaction: %v", err)
}

View File

@ -127,7 +127,7 @@ func submitCollation(shardID int64) error {
func joinCollatorPool(c client.Client) error {
log.Info("Joining collator pool")
txOps, err := c.CreateTXOps(sharding.CollatorDeposit)
txOps, err := c.CreateTXOpts(sharding.CollatorDeposit)
if err != nil {
return fmt.Errorf("unable to intiate the deposit transaction: %v", err)
}

View File

@ -43,7 +43,7 @@ func (m *mockClient) SMCTransactor() *contracts.SMCTransactor {
return &m.smc.SMCTransactor
}
func (m *mockClient) CreateTXOps(value *big.Int) (*bind.TransactOpts, error) {
func (m *mockClient) CreateTXOpts(value *big.Int) (*bind.TransactOpts, error) {
txOpts := transactOpts()
txOpts.Value = value
return txOpts, nil