Skip to main content
added 7 characters in body
Source Link
Ademola
  • 3.9k
  • 3
  • 20

0x0 means you're attempting to initialize an already initialized account. What's happening here is that because your PDAs have only constant seeds, the same address is generated for them on each run of the test.

Therefore, not only does running your test for the first time initializesinitialize pdaGlobalAccount and pdaEscrow and any attempt to run your, but subsequent tests after that failsalso fail because it triesthey would attempt to initialize the same accounts as the first because(because constant seeds give you the exact same address each time).

0x0 means you're attempting to initialize an already initialized account. What's happening here is that because your PDAs have only constant seeds, the same address is generated for them on each run of the test.

Therefore running your test for the first time initializes pdaGlobalAccount and pdaEscrow and any attempt to run your tests after that fails because it tries to initialize the same accounts as the first because constant seeds give you the exact same address each time.

0x0 means you're attempting to initialize an already initialized account. What's happening here is that because your PDAs have only constant seeds, the same address is generated for them on each run of the test.

Therefore, not only does running your test for the first time initialize pdaGlobalAccount and pdaEscrow, but subsequent tests also fail because they would attempt to initialize the same accounts as the first (because constant seeds give you the exact same address each time).

Source Link
Ademola
  • 3.9k
  • 3
  • 20

0x0 means you're attempting to initialize an already initialized account. What's happening here is that because your PDAs have only constant seeds, the same address is generated for them on each run of the test.

Therefore running your test for the first time initializes pdaGlobalAccount and pdaEscrow and any attempt to run your tests after that fails because it tries to initialize the same accounts as the first because constant seeds give you the exact same address each time.