diff --git a/scripts/update-replica.sh b/scripts/update-replica.sh index d509843dc5..5660bad82f 100755 --- a/scripts/update-replica.sh +++ b/scripts/update-replica.sh @@ -34,6 +34,10 @@ niv update sandbox_launcher-x86_64-linux -a rev="$SHA" niv update sns-x86_64-darwin -a rev="$SHA" niv update sns-x86_64-linux -a rev="$SHA" +# pocket-ic client needs to be upgraded to the same SHA as the pocket-ic server +perl -i.bak -pe "s/(pocket-ic = {[^}]*rev = \")[a-f0-9]+(\")/\1$SHA\2/" src/dfx/Cargo.toml +cargo update -p pocket-ic # refresh the lock file + echo "Writing asset sources" ./scripts/write-dfx-asset-sources.sh