TypeError: provider.getGasConfig is not a function

Also, I tried to call a transaction with a wallet instance generated from privateKey and everything worked but not really well, one mint call worked well and the other started to fail with next Error

Error: Transaction is not inserted. Hash is already known: {"response":{"data":null,"errors":[{"message":"Transaction is not inserted. Hash is already known","locations":[{"line":2,"column":3}],"path":["submit"]}],"status":200,"headers":{"map":{"content-type":"application/json"}}},"request":{"query":"mutation submit($encodedTransaction: HexString!) {\n  submit(tx: $encodedTransaction) {\n    id\n  }\n}","variables":{"encodedTransaction":"0x0000000000000000000000000000000200000000009896800000000000000000000000000000001800000000000000a00000000000000002000000000000000c00000000000000010000000000000000000000000000000000000000000000000000000000000000724028a8724428805d451000724828882d41148a2404000000000000000000000000000000000000000000000000000000000000000000000000000000000000d8c627b9cd9ee42e2c2bd9793b13bc9f8e9aad32e25a99ea574f23c1dd17685a00000000812e79b000000000000028d87aa35fdbcd9e3ef68475417f35b7bd6778e7fafa5f0b4b190a353db900183212e26ef19029cc92e234d9457823ca0811b92db9ce9dbf8db99c0fdd75d11338f00000000ba43b74000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000d8c627b9cd9ee42e2c2bd9793b13bc9f8e9aad32e25a99ea574f23c1dd17685a000000000000000043ded2bb3e9b919f819f36be1b727ffc58d0ca43a864cb223957619cc36c461400000000000000017aa35fdbcd9e3ef68475417f35b7bd6778e7fafa5f0b4b190a353db900183212000000001dcd645d00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000027aa35fdbcd9e3ef68475417f35b7bd6778e7fafa5f0b4b190a353db90018321200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000030000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000030000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000030000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000408337ea135a8633646cc309445991514dff7aa193b2134882de3a155f2b1abab6d312a7b7f187aafc74c73b3a0f89a47678d97186fb65ba16110e4b0964ba1041"}}}

This error i described here - Error: Transaction is not inserted. Hash is already known:

Wallet version is 0.13.0 -