forked from hiero-ledger/hiero-sdk-go
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathaccount_stakers_query_test.go
More file actions
17 lines (13 loc) · 969 Bytes
/
account_stakers_query_test.go
File metadata and controls
17 lines (13 loc) · 969 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package hedera
import (
"github.com/stretchr/testify/assert"
"testing"
)
func TestNewAccountStakersQuery(t *testing.T) {
mockTransaction, err := newMockTransaction()
assert.NoError(t, err)
query := NewAccountStakersQuery().
SetAccountID(AccountID{Account: 3}).
SetQueryPaymentTransaction(mockTransaction)
assert.Equal(t, `cryptoGetProxyStakers:<header:<payment:<bodyBytes:"\n\016\n\010\010\334\311\007\020\333\237\t\022\002\030\003\022\002\030\003\030\200\302\327/\"\002\010xr\024\n\022\n\007\n\002\030\002\020\307\001\n\007\n\002\030\003\020\310\001" sigMap:<sigPair:<pubKeyPrefix:"\344\361\300\353L}\315\303\347\353\021p\263\010\212=\022\242\227\364\243\353\342\362\205\003\375g5F\355\216" ed25519:"\022&5\226\373\264\034]P\273%\354P\233k\315\231\013\337\274\254)\246+\322<\227+\273\214\212f\313\332i\027T4{\367\363UYn\n\217\253ep\004\366\203\017\272FUP\243\321/\035\235\032\013" > > > > accountID:<accountNum:3 > > `, query.QueryBuilder.pb.String())
}