fix: rename userdata to data

This commit is contained in:
Michael Vines
2019-03-14 13:27:47 -07:00
parent 5d40f359c2
commit 6fe0e08a80
9 changed files with 144 additions and 144 deletions

View File

@ -95,7 +95,7 @@ test('create new token', async () => {
result: {
owner: [...SYSTEM_TOKEN_PROGRAM_ID.toBuffer()],
lamports: 1,
userdata: [
data: [
1,
16,
39,
@ -163,7 +163,7 @@ test('create new token', async () => {
result: {
owner: [...SYSTEM_TOKEN_PROGRAM_ID.toBuffer()],
lamports: 1,
userdata: [
data: [
2,
...testToken.token.toBuffer(),
...initialOwner.publicKey.toBuffer(),
@ -252,7 +252,7 @@ test('create new token account', async () => {
result: {
owner: [...SYSTEM_TOKEN_PROGRAM_ID.toBuffer()],
lamports: 1,
userdata: [
data: [
2,
...testToken.token.toBuffer(),
...destOwner.publicKey.toBuffer(),
@ -310,7 +310,7 @@ test('transfer', async () => {
result: {
owner: [...SYSTEM_TOKEN_PROGRAM_ID.toBuffer()],
lamports: 1,
userdata: [
data: [
2,
...testToken.token.toBuffer(),
...initialOwner.publicKey.toBuffer(),
@ -349,7 +349,7 @@ test('transfer', async () => {
result: {
owner: [...SYSTEM_TOKEN_PROGRAM_ID.toBuffer()],
lamports: 1,
userdata: [
data: [
2,
...testToken.token.toBuffer(),
...dest.toBuffer(),
@ -420,7 +420,7 @@ test('approve/revoke', async () => {
result: {
owner: [...SYSTEM_TOKEN_PROGRAM_ID.toBuffer()],
lamports: 1,
userdata: [
data: [
2,
...testToken.token.toBuffer(),
...delegate.toBuffer(),
@ -482,7 +482,7 @@ test('approve/revoke', async () => {
result: {
owner: [...SYSTEM_TOKEN_PROGRAM_ID.toBuffer()],
lamports: 1,
userdata: [
data: [
2,
...testToken.token.toBuffer(),
...delegate.toBuffer(),