Skip to content

Commit

Permalink
fix reader tests
Browse files Browse the repository at this point in the history
  • Loading branch information
shrimalmadhur committed Dec 4, 2024
1 parent fd3bb2d commit 1061ad1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion chainio/clients/elcontracts/writer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,10 @@ func TestChainWriter(t *testing.T) {
})

t.Run("update metadata URI", func(t *testing.T) {
receipt, err := clients.ElChainWriter.UpdateMetadataURI(context.Background(), "https://0.0.0.0", true)
walletModified, err := crypto.HexToECDSA("2a871d0798f97d79848a013d4936a73bf4cc922c825d33c1cf7073dff6d409c6")
assert.NoError(t, err)
walletModifiedAddress := crypto.PubkeyToAddress(walletModified.PublicKey)
receipt, err := clients.ElChainWriter.UpdateMetadataURI(context.Background(), walletModifiedAddress, "https://0.0.0.0", true)
assert.NoError(t, err)
assert.True(t, receipt.Status == 1)
})
Expand Down

0 comments on commit 1061ad1

Please sign in to comment.