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

lmittmann / w3 / 7997657861

22 Feb 2024 12:42AM UTC coverage: 74.867%. Remained the same
7997657861

Pull #113

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.11 to 1.13.13.
- [Release notes](https://github.com/ethereum/go-ethereum/releases)
- [Commits](https://github.com/ethereum/go-ethereum/compare/v1.13.11...v1.13.13)

---
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 #113: build(deps): bump github.com/ethereum/go-ethereum from 1.13.11 to 1.13.13 in /examples

1966 of 2626 relevant lines covered (74.87%)

1349.6 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 for executing the message
18
        GasRefund       uint64          // Gas refunded after executing the message
19
        GasLimit        uint64          // Deprecated: Minimum required gas limit (gas used without refund)
20
        Logs            []*types.Log    // Logs emitted by the message
21
        Output          []byte          // Output bytes of the applied message
22
        ContractAddress *common.Address // Contract address created by a contract creation transaction
23

24
        Err error // Revert reason
25
}
26

27
// DecodeReturns is like [w3types.Func.DecodeReturns], but returns [ErrMissingFunc]
28
// if the underlying [w3types.Message.Func] is nil.
29
func (r Receipt) DecodeReturns(returns ...any) error {
2✔
30
        if r.Err != nil {
2✔
31
                return r.Err
×
32
        }
×
33
        if r.f == nil {
2✔
34
                return ErrMissingFunc
×
35
        }
×
36
        return r.f.DecodeReturns(r.Output, returns...)
2✔
37
}
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