remove unused comment. add method description for RawCreationTransact

This commit is contained in:
Jared Wasinger 2025-01-07 15:59:16 +07:00 committed by Felix Lange
parent 1dd531a2ba
commit bcc305dc20
3 changed files with 34 additions and 34 deletions

View file

@ -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)
} }

View file

@ -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 {