Skip to content

Commit

Permalink
Revert "feat: updated protobufs, added token pause functionality (#288)…
Browse files Browse the repository at this point in the history
…" (#295)

This reverts commit 951773c.
  • Loading branch information
janaakhterov authored Oct 15, 2021
1 parent 951773c commit 1dfd5f4
Show file tree
Hide file tree
Showing 200 changed files with 4,519 additions and 14,722 deletions.
2 changes: 1 addition & 1 deletion account_create_transaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ func (transaction *AccountCreateTransaction) _Build() *proto.TransactionBody {
ReceiveRecordThreshold: transaction.sendRecordThreshold,
ReceiverSigRequired: transaction.receiverSignatureRequired,
Memo: transaction.memo,
MaxAutomaticTokenAssociations: int32(transaction.maxAutomaticTokenAssociations),
MaxAutomaticTokenAssociations: transaction.maxAutomaticTokenAssociations,
}

if transaction.key != nil {
Expand Down
4 changes: 2 additions & 2 deletions account_info.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ func _AccountInfoFromProtobuf(pb *proto.CryptoGetInfoResponse_AccountInfo) (Acco
AutoRenewPeriod: _DurationFromProtobuf(pb.AutoRenewPeriod),
LiveHashes: liveHashes,
OwnedNfts: pb.OwnedNfts,
MaxAutomaticTokenAssociations: uint32(pb.MaxAutomaticTokenAssociations),
MaxAutomaticTokenAssociations: pb.MaxAutomaticTokenAssociations,
}, nil
}

Expand Down Expand Up @@ -122,7 +122,7 @@ func (info AccountInfo) _ToProtobuf() *proto.CryptoGetInfoResponse_AccountInfo {
TokenRelationships: tokenRelationship,
Memo: info.AccountMemo,
OwnedNfts: info.OwnedNfts,
MaxAutomaticTokenAssociations: int32(info.MaxAutomaticTokenAssociations),
MaxAutomaticTokenAssociations: info.MaxAutomaticTokenAssociations,
}
}

Expand Down
4 changes: 2 additions & 2 deletions account_update_transaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ func (transaction *AccountUpdateTransaction) _Build() *proto.TransactionBody {
ReceiverSigRequiredWrapper: &wrapperspb.BoolValue{Value: transaction.receiverSignatureRequired},
},
Memo: &wrapperspb.StringValue{Value: transaction.memo},
MaxAutomaticTokenAssociations: &wrapperspb.Int32Value{Value: int32(transaction.maxAutomaticTokenAssociations)},
MaxAutomaticTokenAssociations: &wrapperspb.UInt32Value{Value: transaction.maxAutomaticTokenAssociations},
}

if transaction.autoRenewPeriod != nil {
Expand Down Expand Up @@ -242,7 +242,7 @@ func (transaction *AccountUpdateTransaction) _Build() *proto.TransactionBody {
},
}

body.MaxAutomaticTokenAssociations = &wrapperspb.Int32Value{Value: int32(transaction.maxAutomaticTokenAssociations)}
body.MaxAutomaticTokenAssociations = &wrapperspb.UInt32Value{Value: transaction.maxAutomaticTokenAssociations}

return &pb
}
Expand Down
Loading

0 comments on commit 1dfd5f4

Please sign in to comment.