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

unpackdev / solgo / 8484181768

29 Mar 2024 06:08PM UTC coverage: 65.324%. First build
8484181768

push

github

web-flow
Contracts package (#178)

0 of 674 new or added lines in 13 files covered. (0.0%)

27423 of 41980 relevant lines covered (65.32%)

0.72 hits per line

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

0.0
/contracts/bytecode.go
1
package contracts
2

3
import (
4
        "fmt"
5
)
6

7
// DiscoverDeployedBytecode retrieves the deployed bytecode of the contract deployed at the specified address.
8
// It queries the blockchain using the provided client to fetch the bytecode associated with the contract address.
9
// The fetched bytecode is then stored in the contract descriptor for further processing.
NEW
10
func (c *Contract) DiscoverDeployedBytecode() error {
×
NEW
11
        code, err := c.client.CodeAt(c.ctx, c.addr, nil)
×
NEW
12
        if err != nil {
×
NEW
13
                return fmt.Errorf("failed to get code at address %s: %s", c.addr.Hex(), err)
×
NEW
14
        }
×
NEW
15
        c.descriptor.DeployedBytecode = code
×
NEW
16

×
NEW
17
        return nil
×
18
}
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

© 2026 Coveralls, Inc