Skip to content

Commit

Permalink
[ans] Unblock CI by skipping simulation on upload of code
Browse files Browse the repository at this point in the history
  • Loading branch information
gregnazario committed Oct 3, 2024
1 parent f7dbc8c commit f77a186
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/e2e/ans/publishANSContracts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,9 @@ export async function publishAnsContract(
const contracts = ["core", "core_v2", "router"];
// eslint-disable-next-line no-restricted-syntax
for (const contract of contracts) {
// TODO: This is a temporary fix to unblock CI (`--max-gas`), the CLI should handle simulation correctly, and this hack shouldn't be necessary.
execCmdBuffer(
`${cliInvocation} move publish --package-dir ${repoDir}/${contract} --assume-yes --private-key=${LOCAL_ANS_ACCOUNT_PK} --named-addresses aptos_names=${LOCAL_ANS_ACCOUNT_ADDRESS},router=${LOCAL_ANS_ACCOUNT_ADDRESS},aptos_names_v2_1=${LOCAL_ANS_ACCOUNT_ADDRESS},aptos_names_admin=${LOCAL_ANS_ACCOUNT_ADDRESS},aptos_names_funds=${LOCAL_ANS_ACCOUNT_ADDRESS},router_signer=${ROUTER_SIGNER} --url=${aptos.config.getRequestUrl(
`${cliInvocation} move publish --max-gas 10000 --package-dir ${repoDir}/${contract} --assume-yes --private-key=${LOCAL_ANS_ACCOUNT_PK} --named-addresses aptos_names=${LOCAL_ANS_ACCOUNT_ADDRESS},router=${LOCAL_ANS_ACCOUNT_ADDRESS},aptos_names_v2_1=${LOCAL_ANS_ACCOUNT_ADDRESS},aptos_names_admin=${LOCAL_ANS_ACCOUNT_ADDRESS},aptos_names_funds=${LOCAL_ANS_ACCOUNT_ADDRESS},router_signer=${ROUTER_SIGNER} --url=${aptos.config.getRequestUrl(
AptosApiType.FULLNODE,
)}`,
);
Expand Down

0 comments on commit f77a186

Please sign in to comment.