You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When interacting with my smart contract on the testnet using the sandbox emulator, I send a message to update the contract code. The contract's code updates successfully, and interactions reflect the new code. However, when retrieving the contract code using blockchain.getContract(contractAddress).accountState.state.code, the returned code is still the old version, despite the contract behaving as if it is running the updated code.
To Reproduce
Deploy a smart contract with the ability to update its code.
Use the sandbox emulator to send a message that triggers the contract to update its code.
Verify that interactions with the contract reflect the updated code.
Retrieve the contract code using blockchain.getContract(contractAddress).accountState.state.code.
Compare the retrieved code with the new code sent during the update transaction to confirm if they match.
Expected behavior
The code retrieved from accountState.state.code should match the updated code that the contract is currently executing.
Actual behavior
The contract executes the updated code, but accountState.state.code returns the old version of the code, causing a discrepancy between the actual contract behavior and the retrieved code.
System information
Package version: @ton/sandbox: ^0.23.0
Node version: v18.20.2
OS name and version: MacOS (Macbook M1 pro 2021) built-in SSD
The text was updated successfully, but these errors were encountered:
Describe the bug
When interacting with my smart contract on the testnet using the sandbox emulator, I send a message to update the contract code. The contract's code updates successfully, and interactions reflect the new code. However, when retrieving the contract code using
blockchain.getContract(contractAddress).accountState.state.code
, the returned code is still the old version, despite the contract behaving as if it is running the updated code.To Reproduce
blockchain.getContract(contractAddress).accountState.state.code
.Expected behavior
The code retrieved from
accountState.state.code
should match the updated code that the contract is currently executing.Actual behavior
The contract executes the updated code, but
accountState.state.code
returns the old version of the code, causing a discrepancy between the actual contract behavior and the retrieved code.System information
The text was updated successfully, but these errors were encountered: