NewBasic creates a new instance of Basic, bound to a specific deployed contract.
(address common.Address, backend bind.ContractBackend)
| 121 | |
| 122 | // NewBasic creates a new instance of Basic, bound to a specific deployed contract. |
| 123 | func 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. |
| 132 | func NewBasicCaller(address common.Address, caller bind.ContractCaller) (*BasicCaller, error) { |