cost 231 ms
在 venom.network 上部署智能合約時出現 locklift 錯誤:“錯誤:提供者有空合約 state,請檢查提供者地址”,

[英]locklift error while deploying smart contract on venom network: "Error: Giver has empty contract state, check the giver address",

我試圖用這個jrpc URL 在 venom de.net 區塊鏈上部署我的智能合約 jrpc url 但我收到此消息時出錯Error("Giver has empty contract state, check the giver address"); ...

調用智能合約function時,參數是否記錄在區塊鏈上?

[英]When calling a smart contract function, do the params record on blockchain?

我想建立一個智能合約 function,它使用調用者的密碼作為參數。 我對區塊鏈安全一無所知,所以我問以下問題: 調用智能合約function時,參數是否記錄在區塊鏈上? 另外,地址調用智能合約的function,區塊鏈會記錄哪些信息? 我認為事件發出的日志必須記錄在區塊鏈上,除了這些,還有什么? ...

無法使用 Maticjs 通過 POS Bridge 橋接部署的 ERC20 令牌,出現此錯誤“執行已恢復:ERC20:批准到零地址”

[英]Not able to bridge deployed ERC20 token through POS Bridge using Maticjs, getting this error "execution reverted: ERC20: approve to the zero address"

這是我的代碼,我還在 approve function 中添加了選項,其中包含從、到、gasLimit,但這對我也不起作用 我在批准令牌時遇到的錯誤, 我還從多邊形標記映射器門戶映射了標記。 請提供您的反饋 ...

我需要了解以下智能合約代碼

[英]I need to understand below smart contract code

你能幫我解釋一下我在 tomb finance 上找到的智能合約代碼, tomb.sol合約嗎?// Initial distribution for the first 24h genesis pools uint256 public constant INITIAL_GENESIS_POOL_D ...

使用 Chainlink 進行自定義的近似成本 API

[英]Approximating cost of using Chainlink for custom API

我正在計划一個新項目,我需要將一個特定的法定貨幣支付網關連接到我的智能合約。 我不想擁有一個后端集中的系統,所以我正在探索使用 Chainlink 與 API 通信然后將響應傳遞給我的智能合約的可能性。 我知道 Chainlink 允許任何合約通過其去中心化的 oracle.network 訪問任 ...

類型錯誤:不允許從“uint256”到“地址”的顯式類型轉換

[英]TypeError: Explicit type conversion not allowed from "uint256" to "address"

我編寫了簡單的代碼,但出現錯誤“類型錯誤:不允許從“uint256”到“地址”的顯式類型轉換。” 你能幫助我嗎? 我什至向 gpt 機器人詢問了這個錯誤,但這讓我更加困惑))) 一開始有一個簡單的想法 - 10k nft,存款后立即購買 30 個,顯示最低價格,每個人都可以不受限制地購買 ...

如何自動執行 ChainLink 作業以調用智能合約 function,要求調用者是給定的管理員地址?

[英]How to automate a ChainLink Job to call a smart-contract function that requires the caller to be a given admin address?

ChainLink 自動化支持有條件地執行智能合約功能。 但是,當從智能合約調用 function 時,調用 function 的是 ChainLink 注冊合約,而不是注冊 UpKeep 的地址。 因此,如果要調用的 function 具有強制調用者 (msg.sender) 為給定地址(例如 ...

水龍頭合約只允許所有者執行交易

[英]Faucet contract only permits owner to perform transactions

一切都很好,工作得很好,但是為什么當我需要調用 function requestTokens 時,只有 owner 可以成功交易而其他地址不能使用 function 因為合約導致執行恢復? 地址:0x8c08a469BDFd679CEF0729bDEa52BC688d4bDbBC 我盡我所能,就像 ...

Solana Anchor Lang:anchor init 使用 TypeError 創建項目:無法讀取未定義的屬性(讀取“方法”)

[英]Solana Anchor Lang: anchor init creates project with TypeError: Cannot read properties of undefined (reading 'methods')

對可能導致其停止工作的原因感到困惑,我安裝了 solana 和 anchor 並能夠測試項目。 anchor --version anchor-cli 0.26.0 cd hello-world && anchor build工程。 不做任何改變,我運行anchor run te ...

Solidity中如何調用另一個智能合約的function? 以 OpenZeppelin 為例 transferOwnership function

[英]How to call the function of another smart contract in Solidity? With an example of OpenZeppelin transferOwnership function

我在學習OpenZeppelin的時候,發現它的Ownable庫有一個function transferOwnership,可以給當前合約的所有者一個地址。 我可以理解將所有者更改為某人的帳戶地址,但是,它也可以將所有者更改為合同地址。 我的問題是:如果我將當前合約的所有者更改為另一個合約地址,我 ...

閱讀智能合約 function - 我做錯了什么?

[英]Reading smart contract function - what am I doing wrong?

我正在嘗試從這個智能合約中讀取總供應量,我已經檢查了 ABI 並且讀取不需要 arguments。為什么我會收到此錯誤? 使用有效的 API 密鑰從 Etherscan 導入 ABI 使用有效的 api 連接的 Infura 節點。 請幫忙。 我是新來的! 錯誤: 代碼: ...

如何在 Solidity 中優化此智能合約 function 關於刪除數組特定索引中的元素

[英]How to optimize this smart contract function in Solidity about deleting an element in particular index of an array

我使用以下庫代碼根據其索引刪除數組中的元素。 在我看來,唯一的方法是使用循環,但它會消耗大量氣體。 還有其他優化代碼可以解決這個問題嗎? ...

通過地址獲取已部署的合約

[英]Get deployed contract by address

根據這個文檔。 我們可以使用ethers.getContract來獲取已部署的合約。 我已經在0x33F4623337b8F9EDc9529a79F0d68B2BeC98d5E2部署了我的合同,我的創建者地址是0x6e0F5B57FEdc8911722c92dcD5D7D0cf69ceA385現在我 ...

是否有可能在調用合同之前檢查合同是否具有特定的 function 並且不還原或避免還原 0x0dfe1681

[英]Is it possible in solidity to check if a contract has specific function before calling it and not revert or avoid revert 0x0dfe1681

我正在實施一種代幣,該代幣在買賣時收取費用,但在轉讓時不收取費用。 我依靠檢查“從”和“到”作為 uniswap 對(V2 或 V3)來將其檢測為買賣交易。 對於 V2,它相當簡單,因為我可以使用工廠 function 來獲取配對地址。 但是對於V3礦池來說,組合更多,未來可能會增加更多的費用。 ...

override在Solidity中有什么用?

[英]What is the usage of override in Solidity?

我仍然不明白 override 在 solidity 中的用法。 我知道如何編寫覆蓋代碼,但我不知道什么時候應該使用它們。 問題一:是否只是為了在繼承的合約中少寫一些代碼? 問題2:如果我覆蓋子合約中的function,是否會影響父合約中的function? ...

code": -32000, "message": "gas required exceeds allowance (20058647)

[英]code": -32000, "message": "gas required exceeds allowance (20058647)

當我想在 REMIX IDE 中部署此合同時,出現此錯誤: 氣體估計錯誤並顯示以下消息(見下文)。 事務執行很可能會失敗。 是否要強制發送? 內部 JSON-RPC 錯誤。 這是我的合同: 我想創建一個包含 300 個 NFT 的集合 ...


 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM