mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-16 17:03:46 +00:00
remove unused comment. add method description for RawCreationTransact
This commit is contained in:
parent
1dd531a2ba
commit
bcc305dc20
3 changed files with 34 additions and 34 deletions
|
|
@ -266,6 +266,7 @@ func (c *BoundContract) RawTransact(opts *TransactOpts, calldata []byte) (*types
|
||||||
return c.transact(opts, &c.address, calldata)
|
return c.transact(opts, &c.address, calldata)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// RawTransact initiates a contract-creation transaction with the given raw calldata as the input.
|
||||||
func (c *BoundContract) RawCreationTransact(opts *TransactOpts, calldata []byte) (*types.Transaction, error) {
|
func (c *BoundContract) RawCreationTransact(opts *TransactOpts, calldata []byte) (*types.Transaction, error) {
|
||||||
return c.transact(opts, nil, calldata)
|
return c.transact(opts, nil, calldata)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -122,7 +122,6 @@ func (d *depTreeDeployer) result() *DeploymentResult {
|
||||||
// libraries. If an error occurs, only contracts which were successfully
|
// libraries. If an error occurs, only contracts which were successfully
|
||||||
// deployed are returned in the result.
|
// deployed are returned in the result.
|
||||||
func LinkAndDeploy(deployParams *DeploymentParams, deploy DeployFn) (res *DeploymentResult, err error) {
|
func LinkAndDeploy(deployParams *DeploymentParams, deploy DeployFn) (res *DeploymentResult, err error) {
|
||||||
//deployParams.inputs = make(map[string][]byte)
|
|
||||||
deployer := newDepTreeDeployer(deployParams, deploy)
|
deployer := newDepTreeDeployer(deployParams, deploy)
|
||||||
for _, contract := range deployParams.contracts {
|
for _, contract := range deployParams.contracts {
|
||||||
if _, err := deployer.linkAndDeploy(contract); err != nil {
|
if _, err := deployer.linkAndDeploy(contract); err != nil {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue