Skip to content

Replace deprecated flow-go/onflow/crypto #1460

Replace deprecated flow-go/onflow/crypto

Replace deprecated flow-go/onflow/crypto #1460

Triggered via pull request January 26, 2024 14:56
Status Failure
Total duration 2m 56s
Artifacts

ci.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

9 errors and 2 warnings
Lint: emulator/accountlinking_test.go#L1
: # github.com/onflow/flow-emulator/emulator_test [github.com/onflow/flow-emulator/emulator.test]
Lint: emulator/accountlinking_test.go#L64
flowsdk.NewTransaction().SetScript(script).SetComputeLimit undefined (type *"github.com/onflow/flow-go-sdk".Transaction has no field or method SetComputeLimit)
Lint: emulator/transaction_test.go#L403
cannot use crypto.SHA2_256 (constant 1 of type "github.com/onflow/flow-go/crypto/hash".HashingAlgorithm) as "github.com/onflow/crypto/hash".HashingAlgorithm value in argument to types.NewTransactionInvalidHashAlgo
Lint: emulator/transaction_test.go#L465
cannot use crypto.SHA2_256 (constant 1 of type "github.com/onflow/flow-go/crypto/hash".HashingAlgorithm) as "github.com/onflow/crypto/hash".HashingAlgorithm value in argument to types.NewTransactionInvalidHashAlgo (typecheck)
Lint
issues found
Test: emulator/accountlinking_test.go#L64
flowsdk.NewTransaction().SetScript(script).SetComputeLimit undefined (type *"github.com/onflow/flow-go-sdk".Transaction has no field or method SetComputeLimit)
Test: emulator/transaction_test.go#L403
cannot use crypto.SHA2_256 (constant 1 of type "github.com/onflow/flow-go/crypto/hash".HashingAlgorithm) as "github.com/onflow/crypto/hash".HashingAlgorithm value in argument to types.NewTransactionInvalidHashAlgo
Test: emulator/transaction_test.go#L465
cannot use crypto.SHA2_256 (constant 1 of type "github.com/onflow/flow-go/crypto/hash".HashingAlgorithm) as "github.com/onflow/crypto/hash".HashingAlgorithm value in argument to types.NewTransactionInvalidHashAlgo
Test
Process completed with exit code 2.
Lint
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/setup-go@v4, golangci/golangci-lint-action@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Test
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/setup-go@v4, actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.