Skip to content

Commit

Permalink
fix: NameRevoke doesn't need an Address
Browse files Browse the repository at this point in the history
  • Loading branch information
randomshinichi committed Jul 4, 2019
1 parent 96ddd4a commit 799bb71
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion aeternity/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ func (n *Aens) NameTransferTx(name string, recipientAddress string) (tx NameTran
}

// NameRevokeTx revoke a name
func (n *Aens) NameRevokeTx(name string, recipientAddress string) (tx NameRevokeTx, err error) {
func (n *Aens) NameRevokeTx(name string) (tx NameRevokeTx, err error) {
txTTL, accountNonce, err := GetTTLNonce(n.Client, n.Account.Address, Config.Client.TTL)
if err != nil {
return
Expand Down
2 changes: 1 addition & 1 deletion integration_test/aens_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ func TestAENSWorkflow(t *testing.T) {
_ = signBroadcast(t, &updateTx2, bob, node)

// Revoke the name - shouldn't work because it is signed by the sender, who no longer owns the address
revokeTx, err := aensAlice.NameRevokeTx(name, alice.Address)
revokeTx, err := aensAlice.NameRevokeTx(name)
if err != nil {
t.Fatal(err)
}
Expand Down

0 comments on commit 799bb71

Please sign in to comment.