Updated plugins/wrappers/wrappers.go to include code and input fields on utils core.interface contract object. Also mod and sum to reflect utils v0.0.12

This commit is contained in:
philip-morlier
2022-03-30 15:25:22 -07:00
parent 4a33bc66c5
commit 0b5c23e739
2 changed files with 10 additions and 7 deletions
+8
View File
@@ -59,6 +59,14 @@ func (w *WrappedContract) Value() *big.Int {
return w.c.Value()
}
func (w *WrappedContract) Input() []byte {
return w.c.Input
}
func (w *WrappedContract) Code() []byte {
return w.c.Code
}
// added UseGas bc compiler compained without it. Should investigate if the false return with effect performance.
// take this out of core.interface
func (w *WrappedContract) UseGas(gas uint64) (ok bool) {