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

Function NewBasic

app/basic/contract/go/basic/basic.go:123–129  ·  view source on GitHub ↗

NewBasic creates a new instance of Basic, bound to a specific deployed contract.

(address common.Address, backend bind.ContractBackend)

Source from the content-addressed store, hash-verified

121
122// NewBasic creates a new instance of Basic, bound to a specific deployed contract.
123func NewBasic(address common.Address, backend bind.ContractBackend) (*Basic, error) {
124 contract, err := bindBasic(address, backend, backend, backend)
125 if err != nil {
126 return nil, err
127 }
128 return &Basic{BasicCaller: BasicCaller{contract: contract}, BasicTransactor: BasicTransactor{contract: contract}, BasicFilterer: BasicFilterer{contract: contract}}, nil
129}
130
131// NewBasicCaller creates a new read-only instance of Basic, bound to a specific deployed contract.
132func NewBasicCaller(address common.Address, caller bind.ContractCaller) (*BasicCaller, error) {

Callers 3

TestBasicFunction · 0.92
runFunction · 0.92
runFunction · 0.92

Calls 1

bindBasicFunction · 0.85

Tested by 1

TestBasicFunction · 0.74