MCPcopy Create free account
hub / github.com/ardanlabs/smartcontract / bindBasic

Function bindBasic

app/basic/contract/go/basic/basic.go:159–165  ·  view source on GitHub ↗

bindBasic binds a generic wrapper to an already deployed contract.

(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer)

Source from the content-addressed store, hash-verified

157
158// bindBasic binds a generic wrapper to an already deployed contract.
159func bindBasic(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) {
160 parsed, err := BasicMetaData.GetAbi()
161 if err != nil {
162 return nil, err
163 }
164 return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil
165}
166
167// Call invokes the (constant) contract method with params as input values and
168// sets the output to result. The result type might be a single field for simple

Callers 4

NewBasicFunction · 0.85
NewBasicCallerFunction · 0.85
NewBasicTransactorFunction · 0.85
NewBasicFiltererFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected