swarm icon indicating copy to clipboard operation
swarm copied to clipboard

Swarm Go.1.14 Build FAILED

Open ali2210 opened this issue 5 years ago • 1 comments
trafficstars

System information

go package Swarm version: swarm version OS & Version: Windows/Linux/OSX : Linux Commit hash : (if develop)

Expected behaviour

Project execute prefect

Actual behaviour

project failed to build

Steps to reproduce the behaviour

Go: 1.14 Linux go mod

When ethersphere/swarm/api/client added via module command it throw me these error

github.com/ethersphere/swarm/contracts/ens/contract

../../../pkg/mod/github.com/ethersphere/[email protected]/contracts/ens/contract/ens.go:23:6: undefined: abi.U256 ../../../pkg/mod/github.com/ethersphere/[email protected]/contracts/ens/contract/ensregistry.go:23:6: undefined: abi.U256 ../../../pkg/mod/github.com/ethersphere/[email protected]/contracts/ens/contract/fifsregistrar.go:23:6: undefined: abi.U256 ../../../pkg/mod/github.com/ethersphere/[email protected]/contracts/ens/contract/publicresolver.go:23:6: undefined: abi.U256

github.com/ethersphere/swarm/network/stream

../../../pkg/mod/github.com/ethersphere/[email protected]/network/stream/stream.go:56:4: undefined: node.Service

github.com/ethersphere/go-sw3/contracts-v0-2-0/erc20simpleswap

../../../pkg/mod/github.com/ethersphere/[email protected]/contracts-v0-2-0/erc20simpleswap/erc20simpleswap.go:23:6: undefined: abi.U256

github.com/ethersphere/go-sw3/contracts-v0-2-0/simpleswapfactory

../../../pkg/mod/github.com/ethersphere/[email protected]/contracts-v0-2-0/simpleswapfactory/simpleswapfactory.go:23:6: undefined: abi.U256 How I could resolve this error

Backtrace

[backtrace]

ali2210 avatar Aug 20 '20 17:08 ali2210

Hi @ryanc414 , Thanks for taking the time to make this issue.

Swarm is not anymore actively maintaining this project.

For your project, we recommend switching over to bee (documentation here), which provides similar functionality to Swarm, but is build up anew from the grounds up, on more modern foundations, with more rigor during development and with the advancing insight which comes naturally while developing software like Swarm.

If you experience any difficulties with the porting of your code, we are more than happy to assist you.

You can reach out to me on Telegram (@Eknir) or in the BeeHive (same user name), if you need assistance.

Best,

Eknir avatar Nov 12 '20 17:11 Eknir