Skip to content

Commit

Permalink
fix access test
Browse files Browse the repository at this point in the history
  • Loading branch information
illia-malachyn committed Feb 5, 2025
1 parent 3c32e80 commit 325c8af
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion engine/access/access_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -964,7 +964,7 @@ func (suite *Suite) TestGetTransactionResult() {
}
resp, err := handler.GetTransactionResult(context.Background(), getReq)
require.Error(suite.T(), err)
require.Contains(suite.T(), err.Error(), "failed to find: transaction not in block")
require.Contains(suite.T(), err.Error(), "transaction not found in block")
require.Nil(suite.T(), resp)
})

Expand Down
1 change: 0 additions & 1 deletion integration/testnet/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ func NewClientWithKey(accessAddr string, accountAddr sdk.Address, key sdkcrypto.
// address, with a test service account key for signing transactions.
func NewClient(addr string, chain flow.Chain) (*Client, error) {
key := unittest.ServiceAccountPrivateKey
//TODO(illia): did i mess up with a merge? there's no Encode() method for this type `key.PrivateKey.Encode()`
privateKey, err := sdkcrypto.DecodePrivateKey(sdkcrypto.SignatureAlgorithm(key.SignAlgo), key.PrivateKey.Encode())
if err != nil {
return nil, fmt.Errorf("could not decode private key: %w", err)
Expand Down

0 comments on commit 325c8af

Please sign in to comment.