When I was testing my code with TS, I found that my Anchor test code runs fine initially, but after a while, when I run anchor test --skip-deploy (without --skip-build), it throws an error.

At this point, when I check the address in target/idl, I find that the address is not the address of my program, but instead the address of the admin in a mod defined in the lib.


When I manually change the address in the IDL back to the correct pay... address, and then test using anchor test --skip build --skip-deploy, everything works fine.
Therefore, I think this is a bug with anchor build.
When I was testing my code with TS, I found that my Anchor test code runs fine initially, but after a while, when I run anchor test --skip-deploy (without --skip-build), it throws an error.



At this point, when I check the address in target/idl, I find that the address is not the address of my program, but instead the address of the admin in a mod defined in the lib.
When I manually change the address in the IDL back to the correct pay... address, and then test using anchor test --skip build --skip-deploy, everything works fine.
Therefore, I think this is a bug with anchor build.