fix: catch up to account field renaming
This commit is contained in:
@ -95,7 +95,7 @@ test('create new token', async () => {
|
||||
{
|
||||
error: null,
|
||||
result: {
|
||||
program_id: [...SYSTEM_TOKEN_PROGRAM_ID.toBuffer()],
|
||||
owner: [...SYSTEM_TOKEN_PROGRAM_ID.toBuffer()],
|
||||
tokens: 1,
|
||||
userdata: [
|
||||
1,
|
||||
@ -140,7 +140,7 @@ test('create new token', async () => {
|
||||
84,
|
||||
],
|
||||
executable: false,
|
||||
loader_program_id: [
|
||||
loader: [
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
@ -197,7 +197,7 @@ test('create new token', async () => {
|
||||
{
|
||||
error: null,
|
||||
result: {
|
||||
program_id: [...SYSTEM_TOKEN_PROGRAM_ID.toBuffer()],
|
||||
owner: [...SYSTEM_TOKEN_PROGRAM_ID.toBuffer()],
|
||||
tokens: 1,
|
||||
userdata: [
|
||||
2,
|
||||
@ -245,7 +245,7 @@ test('create new token', async () => {
|
||||
0,
|
||||
],
|
||||
executable: false,
|
||||
loader_program_id: [
|
||||
loader: [
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
@ -322,7 +322,7 @@ test('create new token account', async () => {
|
||||
{
|
||||
error: null,
|
||||
result: {
|
||||
program_id: [...SYSTEM_TOKEN_PROGRAM_ID.toBuffer()],
|
||||
owner: [...SYSTEM_TOKEN_PROGRAM_ID.toBuffer()],
|
||||
tokens: 1,
|
||||
userdata: [
|
||||
2,
|
||||
@ -339,7 +339,7 @@ test('create new token account', async () => {
|
||||
0,
|
||||
],
|
||||
executable: false,
|
||||
loader_program_id: [
|
||||
loader: [
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
@ -416,7 +416,7 @@ test('transfer', async () => {
|
||||
{
|
||||
error: null,
|
||||
result: {
|
||||
program_id: [...SYSTEM_TOKEN_PROGRAM_ID.toBuffer()],
|
||||
owner: [...SYSTEM_TOKEN_PROGRAM_ID.toBuffer()],
|
||||
tokens: 1,
|
||||
userdata: [
|
||||
2,
|
||||
@ -433,7 +433,7 @@ test('transfer', async () => {
|
||||
0,
|
||||
],
|
||||
executable: false,
|
||||
loader_program_id: [
|
||||
loader: [
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
@ -477,12 +477,7 @@ test('transfer', async () => {
|
||||
mockGetSignatureStatus();
|
||||
}
|
||||
|
||||
await testToken.transfer(
|
||||
initialOwner,
|
||||
initialOwnerTokenAccount,
|
||||
dest,
|
||||
123,
|
||||
);
|
||||
await testToken.transfer(initialOwner, initialOwnerTokenAccount, dest, 123);
|
||||
|
||||
{
|
||||
// mock Token.accountInfo()'s getAccountInfo
|
||||
@ -495,7 +490,7 @@ test('transfer', async () => {
|
||||
{
|
||||
error: null,
|
||||
result: {
|
||||
program_id: [...SYSTEM_TOKEN_PROGRAM_ID.toBuffer()],
|
||||
owner: [...SYSTEM_TOKEN_PROGRAM_ID.toBuffer()],
|
||||
tokens: 1,
|
||||
userdata: [
|
||||
2,
|
||||
@ -512,7 +507,7 @@ test('transfer', async () => {
|
||||
0,
|
||||
],
|
||||
executable: false,
|
||||
loader_program_id: [
|
||||
loader: [
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
@ -601,7 +596,7 @@ test('approve/revoke', async () => {
|
||||
{
|
||||
error: null,
|
||||
result: {
|
||||
program_id: [...SYSTEM_TOKEN_PROGRAM_ID.toBuffer()],
|
||||
owner: [...SYSTEM_TOKEN_PROGRAM_ID.toBuffer()],
|
||||
tokens: 1,
|
||||
userdata: [
|
||||
2,
|
||||
@ -627,7 +622,7 @@ test('approve/revoke', async () => {
|
||||
0,
|
||||
],
|
||||
executable: false,
|
||||
loader_program_id: [
|
||||
loader: [
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
@ -698,7 +693,7 @@ test('approve/revoke', async () => {
|
||||
{
|
||||
error: null,
|
||||
result: {
|
||||
program_id: [...SYSTEM_TOKEN_PROGRAM_ID.toBuffer()],
|
||||
owner: [...SYSTEM_TOKEN_PROGRAM_ID.toBuffer()],
|
||||
tokens: 1,
|
||||
userdata: [
|
||||
2,
|
||||
@ -724,7 +719,7 @@ test('approve/revoke', async () => {
|
||||
0,
|
||||
],
|
||||
executable: false,
|
||||
loader_program_id: [
|
||||
loader: [
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
|
Reference in New Issue
Block a user