Skip to content

Commit

Permalink
remove verifyingContract.
Browse files Browse the repository at this point in the history
  • Loading branch information
zkokelj committed Nov 16, 2023
1 parent cb4ac13 commit 7d4bcab
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
2 changes: 0 additions & 2 deletions design/ux/Obscuro_Gateway.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,6 @@ types: {
{ name: "name", type: "string" },
{ name: "version", type: "string" },
{ name: "chainId", type: "uint256" },
{ name: "verifyingContract", type: "address" },
],
Register: [
{ name: "userID", type: "string" },
Expand All @@ -151,7 +150,6 @@ types: {
name: "Obscuro",
version: "1.0",
chainId: obscuroChainIDDecimal,
verifyingContract: "0x0000000000000000000000000000000000000000",
},
message: {
userID: "0x"+userID,
Expand Down
8 changes: 3 additions & 5 deletions go/common/viewingkey/viewing_key.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,6 @@ func GetEIP712RawData(userID string, address *gethcommon.Address) ([]byte, error
{Name: "name", Type: "string"},
{Name: "version", Type: "string"},
{Name: "chainId", Type: "uint256"},
{Name: "verifyingContract", Type: "address"},
},
"Register": {
{Name: "userID", Type: "string"},
Expand All @@ -122,10 +121,9 @@ func GetEIP712RawData(userID string, address *gethcommon.Address) ([]byte, error
}

domain := apitypes.TypedDataDomain{
Name: "Obscuro",
Version: "1.0",
ChainId: (*math.HexOrDecimal256)(big.NewInt(443)),
VerifyingContract: "0x0000000000000000000000000000000000000000",
Name: "Obscuro",
Version: "1.0",
ChainId: (*math.HexOrDecimal256)(big.NewInt(443)),
}

message := map[string]interface{}{
Expand Down
2 changes: 0 additions & 2 deletions tools/walletextension/api/staticOG/javascript.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,6 @@ async function authenticateAccountWithObscuroGatewayEIP712(ethereum, account, us
{ name: "name", type: "string" },
{ name: "version", type: "string" },
{ name: "chainId", type: "uint256" },
{ name: "verifyingContract", type: "address" },
],
Register: [
{ name: "userID", type: "string" },
Expand All @@ -143,7 +142,6 @@ async function authenticateAccountWithObscuroGatewayEIP712(ethereum, account, us
name: "Obscuro",
version: "1.0",
chainId: obscuroChainIDDecimal,
verifyingContract: "0x0000000000000000000000000000000000000000",
},
message: {
userID: "0x"+userID,
Expand Down

0 comments on commit 7d4bcab

Please sign in to comment.