Skip to content

Commit b34c436

Browse files
authored
removed extra logs (#141)
1 parent 4e4690e commit b34c436

File tree

3 files changed

+0
-14
lines changed

3 files changed

+0
-14
lines changed

core/sdk/sdk.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -107,13 +107,11 @@ const getCachedWallet = async (
107107
if (cachedWallet) {
108108
walletData = JSON.parse(cachedWallet);
109109
} else {
110-
console.log("Checking details for address", walletAddress);
111110
// TODO: This needs to be changed...
112111
walletData = await getWalletDetails({
113112
pgtx,
114113
address: walletAddress,
115114
});
116-
console.log("Received wallet data:", walletData);
117115
if (walletData) {
118116
walletDataMap.set(walletAddress, JSON.stringify(walletData));
119117
}
@@ -156,7 +154,6 @@ export const getSDK = async (
156154

157155
//SDK doesn't exist in cache, so we need to instantiate or create it
158156
if (!walletAddress) {
159-
console.log("Creating sdk...");
160157
//create sdk with no wallet
161158
// TODO set to read only when we can
162159
sdk = new ThirdwebSDK(chain, {
@@ -178,10 +175,6 @@ export const getSDK = async (
178175
const gcpKmsKeyId = walletData.gcpKmsKeyId;
179176
const gcpKmsKeyVersionId = walletData.gcpKmsKeyVersionId;
180177

181-
console.log(
182-
`getSDK walletAddress: ${walletAddress}, walletType: ${walletType}, awsKmsKeyId: ${awsKmsKeyId}, gcpKmsKeyId: ${gcpKmsKeyId}, chainName: ${chainName}`,
183-
);
184-
185178
if (walletType === WalletConfigType.aws_kms) {
186179
if (!AWS_REGION || !AWS_ACCESS_KEY_ID || !AWS_SECRET_ACCESS_KEY) {
187180
throw new Error(
@@ -256,9 +249,6 @@ export const getSDK = async (
256249
wallet = new LocalWallet({
257250
chain,
258251
});
259-
console.log(
260-
`Loading local wallet for address ${walletAddress} with key ${THIRDWEB_API_SECRET_KEY}`,
261-
);
262252
await wallet.load({
263253
strategy: "encryptedJson",
264254
password: THIRDWEB_API_SECRET_KEY,

server/helpers/wallets.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,6 @@ export const createGCPKMSWallet = async (
9999

100100
export const getGCPKeyWalletAddress = async (keyId: string): Promise<any> => {
101101
try {
102-
console.log(
103-
`Inside getGCPKeyWalletAddress ${!env.GOOGLE_APPLICATION_CREDENTIAL_EMAIL}`,
104-
);
105102
if (
106103
!env.GOOGLE_KMS_KEY_RING_ID ||
107104
!env.GOOGLE_KMS_LOCATION_ID ||

src/db/wallets/createWalletNonce.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ export const createWalletNonce = async ({
2424
const nonce = BigNumber.from(
2525
(await getWalletNonce(address.toLowerCase(), sdk.getProvider())) ?? 0,
2626
).toNumber();
27-
console.log(nonce);
2827

2928
return prisma.walletNonce.create({
3029
data: {

0 commit comments

Comments
 (0)