Transaction reverted: MemoryOverflow

Tranasaction returns error: transaction reverted: MemoryOverflow, receipts: [Call { id: 0000000000000000000000000000000000000000000000000000000000000000, to: 278aa8c408364f030e85d5404eb17175939555c807b82884d3c7cd9a2de9648a, amount: 100, asset_id: ccceae45a7c23dcd4024f4083e959a0686a191694e76fa4fb76c449361ca01f7, gas: 963957, param1: 10488, param2: 10503, pc: 11936, is: 11936 }, Panic { id: 278aa8c408364f030e85d5404eb17175939555c807b82884d3c7cd9a2de9648a, reason: PanicInstruction { reason: MemoryOverflow, instruction: LW { dst: 0x10, addr: 0x10, offset: 0 } (bytes: 5d 41 00 00) }, pc: 85092, is: 11936, contract_id: None }, ScriptResult { result: Panic, gas_used: 36090 }]

Steps to reproduce:
a. Checkout Verify price for small value · compolabs/orderbook-contract@46e9c4b · GitHub
b. forc build --release &cargo build
c. cd spark-cli
d. …/target/debug/spark-cli core deposit
–asset 0xccceae45a7c23dcd4024f4083e959a0686a191694e76fa4fb76c449361ca01f7
–amount 100
–rpc “testnet.fuel.network”
–contract-id 0x278aa8c408364f030e85d5404eb17175939555c807b82884d3c7cd9a2de9648a

or

…/target/debug/spark-cli core open
–asset-type base
–amount 10
–order-type sell
–price 70000000000000
–rpc “testnet.fuel.network”
–contract-id 0x278aa8c408364f030e85d5404eb17175939555c807b82884d3c7cd9a2de9648a

fuels = { version = “0.64.0”, features = [“fuel-core-lib”] }
forc 0.60.0

I am getting this error while trying to run the cargo build command

you need run ‘forc build --release’ before

are you sure, this is the command to run?

It seems it has been fuel network issue. Now it works fine without any additional changes.

Got it! I am glad its working agin :slight_smile: