We got information from the ShardLabs team that [this workaround](https://github.com/0xs34n/starknet.js/commit/83be37a9e3328a44abd9583b8167c3cb8d882790) is ready to be removed.