• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

lmittmann / w3 / 7496150241

12 Jan 2024 12:19AM UTC coverage: 77.601%. Remained the same
7496150241

Pull #99

github

web-flow
build(deps): bump github.com/ethereum/go-ethereum in /examples

Bumps [github.com/ethereum/go-ethereum](https://github.com/ethereum/go-ethereum) from 1.13.8 to 1.13.10.
- [Release notes](https://github.com/ethereum/go-ethereum/releases)
- [Commits](https://github.com/ethereum/go-ethereum/compare/v1.13.8...v1.13.10)

---
updated-dependencies:
- dependency-name: github.com/ethereum/go-ethereum
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Pull Request #99: build(deps): bump github.com/ethereum/go-ethereum from 1.13.8 to 1.13.10 in /examples

1805 of 2326 relevant lines covered (77.6%)

1420.88 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

50.0
/w3vm/receipt.go
1
package w3vm
2

3
import (
4
        "errors"
5

6
        "github.com/ethereum/go-ethereum/common"
7
        "github.com/ethereum/go-ethereum/core/types"
8
        "github.com/lmittmann/w3/w3types"
9
)
10

11
var ErrMissingFunc = errors.New("missing function")
12

13
// Receipt represents the result of an applied [w3types.Message].
14
type Receipt struct {
15
        f w3types.Func // Func of corresponding message
16

17
        GasUsed         uint64          // Gas used by the message
18
        GasLimit        uint64          // Minimum required gas limit (gas used without refund)
19
        Logs            []*types.Log    // Logs emitted by the message
20
        Output          []byte          // Output bytes of the applied message
21
        ContractAddress *common.Address // Contract address created by a contract creation transaction
22

23
        Err error // Revert reason
24
}
25

26
// DecodeReturns is like [w3types.Func.DecodeReturns], but returns [ErrMissingFunc]
27
// if the underlying [w3types.Message.Func] is nil.
28
func (r Receipt) DecodeReturns(returns ...any) error {
2✔
29
        if r.Err != nil {
2✔
30
                return r.Err
×
31
        }
×
32
        if r.f == nil {
2✔
33
                return ErrMissingFunc
×
34
        }
×
35
        return r.f.DecodeReturns(r.Output, returns...)
2✔
36
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc