Skip to content

Commit

Permalink
Merge pull request #39 from DIMO-Network/development
Browse files Browse the repository at this point in the history
v0.0.13
  • Loading branch information
MoizAhmedd authored Dec 10, 2024
2 parents e7682d5 + 98405d5 commit 9107e69
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 27 deletions.
Binary file modified example-dimo-auth/dimo-network-login-with-dimo-0.0.12.tgz
Binary file not shown.
Binary file not shown.
42 changes: 21 additions & 21 deletions example-dimo-auth/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion example-dimo-auth/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"@types/node": "^16.18.114",
"@types/react": "^18.3.11",
"@types/react-dom": "^18.3.1",
"@dimo-network/login-with-dimo": "file:./dimo-network-login-with-dimo-0.0.12.tgz",
"@dimo-network/login-with-dimo": "file:./dimo-network-login-with-dimo-0.0.13.tgz",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-scripts": "5.0.1",
Expand Down
1 change: 0 additions & 1 deletion example-dimo-auth/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1161,7 +1161,6 @@ function App() {
}
onError={(error: any) => console.error("Error:", error)}
address="0x21cFE003997fB7c2B3cfe5cf71e7833B7B2eCe10"
value="0"
abi={sampleAbi}
functionName="transfer"
args={["0x62b98e019e0d3e4A1Ad8C786202e09017Bd995e1", "0"]}
Expand Down
2 changes: 1 addition & 1 deletion sdk/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dimo-network/login-with-dimo",
"version": "0.0.12",
"version": "0.0.13",
"description": "",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
6 changes: 3 additions & 3 deletions sdk/src/components/ExecuteAdvancedTransactionWithDimo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ interface ExecuteAdvancedTransactionProps {
}) => void; // Success callback
onError: (error: Error) => void; // Error callback
address: string;
value: string;
value?: string;
abi: any;
functionName: string;
args: string[];
Expand All @@ -21,12 +21,12 @@ interface ExecuteAdvancedTransactionProps {
const ExecuteAdvancedTransactionWithDimo: React.FC<
ExecuteAdvancedTransactionProps
> = ({ mode, onSuccess, onError, address, value, abi, functionName, args }) => {
if (!address || !value || !abi || !functionName || !args) {
if (!address || !abi || !functionName || !args) {
throw new Error("Missing required transaction parameters.");
}
const transactionData: TransactionData = {
address,
value, // BigInt to string
value: value ? value : "", // BigInt to string
abi,
functionName,
args,
Expand Down

0 comments on commit 9107e69

Please sign in to comment.